summaryrefslogtreecommitdiff
path: root/fftools/ffmpeg.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-06-19 20:09:24 +0200
committerAnton Khirnov <anton@khirnov.net>2022-07-28 16:37:16 +0200
commit98ece428e3a0ba22aadad2486371714efd3fba98 (patch)
treeb4cef7da3b23e4cc63cd588c6b369770a6cfc955 /fftools/ffmpeg.c
parent4f91782fcd37884b177c7507de878981a63ffaac (diff)
fftools/ffmpeg: deprecate the -map_channel option
It is now entirely redundant with audio filters, and is in fact implemented by setting up a 'pan' filter instance.
Diffstat (limited to 'fftools/ffmpeg.c')
-rw-r--r--fftools/ffmpeg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index c1ce017d80..30df93de2c 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -578,8 +578,10 @@ static void ffmpeg_cleanup(int ret)
av_freep(&ost->avfilter);
av_freep(&ost->logfile_prefix);
+#if FFMPEG_OPT_MAP_CHANNEL
av_freep(&ost->audio_channels_map);
ost->audio_channels_mapped = 0;
+#endif
av_dict_free(&ost->sws_dict);
av_dict_free(&ost->swr_opts);