You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/svq3: Fix memleak of last_pic_for_ec
Found-by: jamrial Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -902,6 +902,8 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx)
|
|||||||
// we will overwrite it later during decoding
|
// we will overwrite it later during decoding
|
||||||
av_frame_free(&h->cur_pic.f);
|
av_frame_free(&h->cur_pic.f);
|
||||||
|
|
||||||
|
av_frame_free(&h->last_pic_for_ec.f);
|
||||||
|
|
||||||
ff_h264dsp_init(&h->h264dsp, 8, 1);
|
ff_h264dsp_init(&h->h264dsp, 8, 1);
|
||||||
av_assert0(h->sps.bit_depth_chroma == 0);
|
av_assert0(h->sps.bit_depth_chroma == 0);
|
||||||
ff_h264_pred_init(&h->hpc, AV_CODEC_ID_SVQ3, 8, 1);
|
ff_h264_pred_init(&h->hpc, AV_CODEC_ID_SVQ3, 8, 1);
|
||||||
|
Reference in New Issue
Block a user