mirror of https://git.ffmpeg.org/ffmpeg.git
ffmpeg: fix memleak of encoder options AVDictionary on failure
Reviewed-by: Josh de Kock <josh@itanimul.li> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
e3842e87f2
commit
3ac76d7618
1
ffmpeg.c
1
ffmpeg.c
|
@ -513,6 +513,7 @@ static void ffmpeg_cleanup(int ret)
|
||||||
|
|
||||||
av_frame_free(&ost->filtered_frame);
|
av_frame_free(&ost->filtered_frame);
|
||||||
av_frame_free(&ost->last_frame);
|
av_frame_free(&ost->last_frame);
|
||||||
|
av_dict_free(&ost->encoder_opts);
|
||||||
|
|
||||||
av_parser_close(ost->parser);
|
av_parser_close(ost->parser);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue