1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

lavfi/subtitles: fix memleak after 6bcb1e1a

Spotted-by: James Almer <jamrial@gmail.com>
This commit is contained in:
Clément Bœsch 2016-06-25 19:11:51 +02:00
parent ee2a8f142b
commit e73ccfd6ad

View File

@ -478,6 +478,7 @@ end:
av_dict_free(&codec_opts);
if (dec_ctx)
avcodec_close(dec_ctx);
avcodec_free_context(&dec_ctx);
if (fmt)
avformat_close_input(&fmt);
return ret;