summaryrefslogtreecommitdiff
path: root/libavcodec/aac_adtstoasc_bsf.c
diff options
context:
space:
mode:
authorAlex Converse <alex.converse@gmail.com>2009-11-15 19:40:44 +0000
committerAlex Converse <alex.converse@gmail.com>2009-11-15 19:40:44 +0000
commitb3507d398b703ed8f06d8608f254c3937a7a42b0 (patch)
tree05d47e8c1e50e241f59714ecb0ba09f696b2f868 /libavcodec/aac_adtstoasc_bsf.c
parentb2bf3cfe322549cdc7bbc1603642ff4137a5e2bb (diff)
Pad the extradata in the AAC ADTS to AudioSpecificConfig bitstream filter.
Originally committed as revision 20541 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/aac_adtstoasc_bsf.c')
-rw-r--r--libavcodec/aac_adtstoasc_bsf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aac_adtstoasc_bsf.c b/libavcodec/aac_adtstoasc_bsf.c
index 96876dd62f..9d53a011c8 100644
--- a/libavcodec/aac_adtstoasc_bsf.c
+++ b/libavcodec/aac_adtstoasc_bsf.c
@@ -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);