changeset 10533:d5339724d6ce libavcodec

Pad the extradata in the AAC ADTS to AudioSpecificConfig bitstream filter.
author alexc
date Sun, 15 Nov 2009 19:40:44 +0000
parents ca88470521db
children 4cd2ef16fb63
files aac_adtstoasc_bsf.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/aac_adtstoasc_bsf.c	Sun Nov 15 10:41:46 2009 +0000
+++ b/aac_adtstoasc_bsf.c	Sun Nov 15 19:40:44 2009 +0000
@@ -84,7 +84,7 @@
             buf      += get_bits_count(&gb)/8;
         }
         avctx->extradata_size = 2 + pce_size;
-        avctx->extradata = av_malloc(avctx->extradata_size);
+        avctx->extradata = av_mallocz(avctx->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE);
 
         init_put_bits(&pb, avctx->extradata, avctx->extradata_size);
         put_bits(&pb, 5, hdr.object_type);