From 425242e573298086b7d66809318341b39bfeb008 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Fri, 24 Feb 2017 19:14:04 +0100 Subject: encca_aac: no need to pad manually the remaining data --- libhb/platform/macosx/encca_aac.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/libhb/platform/macosx/encca_aac.c b/libhb/platform/macosx/encca_aac.c index 052eadb4b..a3d8fd860 100644 --- a/libhb/platform/macosx/encca_aac.c +++ b/libhb/platform/macosx/encca_aac.c @@ -483,18 +483,6 @@ static hb_buffer_t* Encode(hb_work_object_t *w) static hb_buffer_t* Flush(hb_work_object_t *w, hb_buffer_t *bufin) { - hb_work_private_t *pv = w->private_data; - - // pad whatever data we have out to four input frames. - int nbytes = hb_list_bytes(pv->list); - int pad = pv->isamples * pv->isamplesiz - nbytes; - if (pad > 0) - { - hb_buffer_t *tmp = hb_buffer_init(pad); - memset(tmp->data, 0, pad); - hb_list_add(pv->list, tmp); - } - hb_buffer_t *bufout = NULL, *buf = NULL, *b = NULL; while ((b = Encode(w))) { -- cgit v1.2.3