[FFmpeg-devel] [PATCH] Fix memory leak in adtstoasc bitstream filter
Alex Sukhanov
alx.sukhanov at gmail.com
Mon Feb 3 02:16:01 CET 2014
---
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);
--
1.9.0.rc1.175.g0b1dcb5
More information about the ffmpeg-devel
mailing list