[FFmpeg-cvslog] avcodec/aac_adtstoasc_bsf: Fix memory leak
Alex Sukhanov
git at videolan.org
Mon Feb 3 15:07:24 CET 2014
ffmpeg | branch: master | Alex Sukhanov <alx.sukhanov at gmail.com> | Sun Feb 2 17:16:01 2014 -0800| [889afca369ef3a939c68592ef2b1a1756667ce21] | committer: Michael Niedermayer
avcodec/aac_adtstoasc_bsf: Fix memory leak
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=889afca369ef3a939c68592ef2b1a1756667ce21
---
libavcodec/aac_adtstoasc_bsf.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/aac_adtstoasc_bsf.c b/libavcodec/aac_adtstoasc_bsf.c
index c8f9e0a..37ba5c1 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);
More information about the ffmpeg-cvslog
mailing list