Mercurial > libavcodec.hg
diff aac_adtstoasc_bsf.c @ 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 | 7ad7d4094d1f |
children | e7634f1b6100 |
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);