Commit 889afca3 authored by Alex Sukhanov's avatar Alex Sukhanov Committed by Michael Niedermayer

avcodec/aac_adtstoasc_bsf: Fix memory leak

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 86583903
......@@ -87,6 +87,7 @@ static int aac_adtstoasc_filter(AVBitStreamFilterContext *bsfc,
buf_size -= get_bits_count(&gb)/8;
buf += get_bits_count(&gb)/8;
}
av_free(avctx->extradata);
avctx->extradata_size = 2 + pce_size;
avctx->extradata = av_mallocz(avctx->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE);
......
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