]> granicus.if.org Git - handbrake/commitdiff
encca_aac: no need to pad manually the remaining data
authorDamiano Galassi <damiog@gmail.com>
Fri, 24 Feb 2017 18:14:04 +0000 (19:14 +0100)
committerDamiano Galassi <galad87@users.noreply.github.com>
Fri, 24 Feb 2017 18:23:03 +0000 (19:23 +0100)
libhb/platform/macosx/encca_aac.c

index 052eadb4b717aae6a4112d7d523d3916a610514d..a3d8fd8604cd7c8ac7e83fba7652da1dfccf7d7d 100644 (file)
@@ -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)))
     {