]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Pad the extradata in the AAC ADTS to AudioSpecificConfig bitstream filter.
authoralexc <alexc@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 15 Nov 2009 19:40:44 +0000 (19:40 +0000)
committeralexc <alexc@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 15 Nov 2009 19:40:44 +0000 (19:40 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20541 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/aac_adtstoasc_bsf.c

index 96876dd62f446af1a48affda1ecb2745dd0b64d6..9d53a011c8b51d08ade6c04005d88a768d3f3130 100644 (file)
@@ -84,7 +84,7 @@ static int aac_adtstoasc_filter(AVBitStreamFilterContext *bsfc,
             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);