[FFmpeg-cvslog] fftools/ffmpeg: Free swresample dictionary during cleanup

Andreas Rheinhardt git at videolan.org
Fri Jul 3 16:10:19 EEST 2020


ffmpeg | branch: release/3.3 | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Thu Oct 24 15:36:35 2019 +0200| [25a0887c5a1d4e2cc4d84ddeabdfd7dc26a69786] | committer: Andreas Rheinhardt

fftools/ffmpeg: Free swresample dictionary during cleanup

Freeing this was forgotten in ad899522.

Fixes #8315 and #8316.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 6f2a3958cfac135c60b509a61a4fd39432d8f9a9)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>

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

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

diff --git a/ffmpeg.c b/ffmpeg.c
index b0ac1c6708..05aa475981 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -554,6 +554,7 @@ static void ffmpeg_cleanup(int ret)
         ost->audio_channels_mapped = 0;
 
         av_dict_free(&ost->sws_dict);
+        av_dict_free(&ost->swr_opts);
 
         avcodec_free_context(&ost->enc_ctx);
         avcodec_parameters_free(&ost->ref_par);



More information about the ffmpeg-cvslog mailing list