[FFmpeg-cvslog] lavfi/subtitles: fix memleak after 6bcb1e1a
Clément Bœsch
git at videolan.org
Sat Jun 25 19:12:14 CEST 2016
ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Sat Jun 25 19:11:51 2016 +0200| [e73ccfd6ad10d25862bc0b459519524ec5dfb2b1] | committer: Clément Bœsch
lavfi/subtitles: fix memleak after 6bcb1e1a
Spotted-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e73ccfd6ad10d25862bc0b459519524ec5dfb2b1
---
libavfilter/vf_subtitles.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavfilter/vf_subtitles.c b/libavfilter/vf_subtitles.c
index 5c3cffb..c7c82b7 100644
--- a/libavfilter/vf_subtitles.c
+++ b/libavfilter/vf_subtitles.c
@@ -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;
More information about the ffmpeg-cvslog
mailing list