diff options
author | James Almer <jamrial@gmail.com> | 2016-09-24 20:59:01 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2016-09-25 22:17:41 +0300 |
commit | 3ac76d76185114bdfade3156a72ff97a65488adf (patch) | |
tree | 27f619377e7810c95a9a48d4ca03c646e2ae6a9d /ffmpeg.c | |
parent | e3842e87f2f03f8e2053cd4f5b7354e0274c2110 (diff) |
ffmpeg: fix memleak of encoder options AVDictionary on failure
Reviewed-by: Josh de Kock <josh@itanimul.li>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |