# HG changeset patch # User alexc # Date 1258314044 0 # Node ID d5339724d6ceba358010690c3ea67038c17360d0 # Parent ca88470521db8bd80ba48fa20b2199ece84fbd22 Pad the extradata in the AAC ADTS to AudioSpecificConfig bitstream filter. diff -r ca88470521db -r d5339724d6ce aac_adtstoasc_bsf.c --- 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);