diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-01 03:15:46 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-01 03:15:46 +0200 |
commit | 3cd666cfbc7d52075ffdadd3603f46fdc87d67db (patch) | |
tree | 3e74989c6faca6aeff5d119b5355252a788c8570 /libavcodec | |
parent | e0153145f6f8f3aa813652980862bafc8fd9b5c9 (diff) | |
download | ffmpeg-3cd666cfbc7d52075ffdadd3603f46fdc87d67db.tar.gz |
avcodec/svq3: Fix memleak of last_pic_for_ec
Found-by: jamrial
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/svq3.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c index a5920fb2fb..ed71b0023c 100644 --- a/libavcodec/svq3.c +++ b/libavcodec/svq3.c @@ -902,6 +902,8 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx) // we will overwrite it later during decoding av_frame_free(&h->cur_pic.f); + av_frame_free(&h->last_pic_for_ec.f); + ff_h264dsp_init(&h->h264dsp, 8, 1); av_assert0(h->sps.bit_depth_chroma == 0); ff_h264_pred_init(&h->hpc, AV_CODEC_ID_SVQ3, 8, 1); |