[FFmpeg-cvslog] r20541 - trunk/libavcodec/aac_adtstoasc_bsf.c

alexc subversion
Sun Nov 15 20:40:44 CET 2009


Author: alexc
Date: Sun Nov 15 20:40:44 2009
New Revision: 20541

Log:
Pad the extradata in the AAC ADTS to AudioSpecificConfig bitstream filter.

Modified:
   trunk/libavcodec/aac_adtstoasc_bsf.c

Modified: trunk/libavcodec/aac_adtstoasc_bsf.c
==============================================================================
--- trunk/libavcodec/aac_adtstoasc_bsf.c	Sun Nov 15 11:41:46 2009	(r20540)
+++ trunk/libavcodec/aac_adtstoasc_bsf.c	Sun Nov 15 20:40:44 2009	(r20541)
@@ -84,7 +84,7 @@ static int aac_adtstoasc_filter(AVBitStr
             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);



More information about the ffmpeg-cvslog mailing list