You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
lavfi/subtitles: fix memleak after 6bcb1e1a
Spotted-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -478,6 +478,7 @@ end:
|
|||||||
av_dict_free(&codec_opts);
|
av_dict_free(&codec_opts);
|
||||||
if (dec_ctx)
|
if (dec_ctx)
|
||||||
avcodec_close(dec_ctx);
|
avcodec_close(dec_ctx);
|
||||||
|
avcodec_free_context(&dec_ctx);
|
||||||
if (fmt)
|
if (fmt)
|
||||||
avformat_close_input(&fmt);
|
avformat_close_input(&fmt);
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user