diff mbox

[FFmpeg-devel,1/2] ffmpeg: fix memleak of encoder options AVDictionary on failure

Message ID 20160924182433.9160-1-jamrial@gmail.com
State Accepted
Commit 3ac76d76185114bdfade3156a72ff97a65488adf
Headers show

Commit Message

James Almer Sept. 24, 2016, 6:24 p.m. UTC
Signed-off-by: James Almer <jamrial@gmail.com>
---
 ffmpeg.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/ffmpeg.c b/ffmpeg.c
index 1b363f7..005c631 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);