[FFmpeg-cvslog] ffmpeg: fix memleak of encoder options AVDictionary on failure

James Almer git at videolan.org
Sun Sep 25 22:19:48 EEST 2016


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Sep 24 14:59:01 2016 -0300| [3ac76d76185114bdfade3156a72ff97a65488adf] | committer: James Almer

ffmpeg: fix memleak of encoder options AVDictionary on failure

Reviewed-by: Josh de Kock <josh at itanimul.li>
Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3ac76d76185114bdfade3156a72ff97a65488adf
---

 ffmpeg.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ffmpeg.c b/ffmpeg.c
index ec452d2..df55a49 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -513,6 +513,7 @@ static void ffmpeg_cleanup(int ret)
 
         av_frame_free(&ost->filtered_frame);
         av_frame_free(&ost->last_frame);
+        av_dict_free(&ost->encoder_opts);
 
         av_parser_close(ost->parser);
 



More information about the ffmpeg-cvslog mailing list