aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-10-24 15:36:35 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-07-03 14:13:50 +0200
commit25a0887c5a1d4e2cc4d84ddeabdfd7dc26a69786 (patch)
treebdb402eee387d2740ebe7a4ded820c976880904c
parente5655c04446614e54f2fdf1294cc4f6773d8f6a6 (diff)
downloadffmpeg-25a0887c5a1d4e2cc4d84ddeabdfd7dc26a69786.tar.gz
fftools/ffmpeg: Free swresample dictionary during cleanup
Freeing this was forgotten in ad899522. Fixes #8315 and #8316. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 6f2a3958cfac135c60b509a61a4fd39432d8f9a9) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-rw-r--r--ffmpeg.c1
1 files changed, 1 insertions, 0 deletions
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);