mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
snowenc: Fix memleak of the ratecontrol related memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f13e733145
commit
90411f7ed6
@ -1963,6 +1963,7 @@ static av_cold int encode_end(AVCodecContext *avctx)
|
|||||||
SnowContext *s = avctx->priv_data;
|
SnowContext *s = avctx->priv_data;
|
||||||
|
|
||||||
ff_snow_common_end(s);
|
ff_snow_common_end(s);
|
||||||
|
ff_rate_control_uninit(&s->m);
|
||||||
av_frame_unref(&s->input_picture);
|
av_frame_unref(&s->input_picture);
|
||||||
av_free(avctx->stats_out);
|
av_free(avctx->stats_out);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user