Commit 37f3132d authored by alexc's avatar alexc

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20541 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ad849fc6
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment