summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2017-02-24 19:14:04 +0100
committerDamiano Galassi <[email protected]>2017-02-24 19:23:03 +0100
commit425242e573298086b7d66809318341b39bfeb008 (patch)
treef0bd8e0db27ada4e25e79693f08a85087023deaa
parentb02f2f7daefb38c9eee671ca695c4980b464e697 (diff)
encca_aac: no need to pad manually the remaining data
-rw-r--r--libhb/platform/macosx/encca_aac.c12
1 files changed, 0 insertions, 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)))
{