diff options
author | Alex Sukhanov <alx.sukhanov@gmail.com> | 2014-02-02 17:16:01 -0800 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-02-03 15:06:41 +0100 |
commit | 889afca369ef3a939c68592ef2b1a1756667ce21 (patch) | |
tree | fce19332f6f9ac19a575c17bf7e754ed0c6cd935 | |
parent | 8658390336988dd6835698fc4e07d62f296c408b (diff) | |
download | ffmpeg-889afca369ef3a939c68592ef2b1a1756667ce21.tar.gz |
avcodec/aac_adtstoasc_bsf: Fix memory leak
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/aac_adtstoasc_bsf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/aac_adtstoasc_bsf.c b/libavcodec/aac_adtstoasc_bsf.c index c8f9e0ae69..37ba5c17d2 100644 --- a/libavcodec/aac_adtstoasc_bsf.c +++ b/libavcodec/aac_adtstoasc_bsf.c @@ -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); |