diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-06-19 20:09:24 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-07-28 16:37:16 +0200 |
commit | 98ece428e3a0ba22aadad2486371714efd3fba98 (patch) | |
tree | b4cef7da3b23e4cc63cd588c6b369770a6cfc955 /fftools/ffmpeg.h | |
parent | 4f91782fcd37884b177c7507de878981a63ffaac (diff) | |
download | ffmpeg-98ece428e3a0ba22aadad2486371714efd3fba98.tar.gz |
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.h')
-rw-r--r-- | fftools/ffmpeg.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index 66a49a0cb7..6417db03bd 100644 --- a/fftools/ffmpeg.h +++ b/fftools/ffmpeg.h @@ -51,6 +51,7 @@ // deprecated features #define FFMPEG_OPT_PSNR 1 +#define FFMPEG_OPT_MAP_CHANNEL 1 enum VideoSyncMethod { VSYNC_AUTO = -1, @@ -85,10 +86,12 @@ typedef struct StreamMap { char *linklabel; /* name of an output link, for mapping lavfi outputs */ } StreamMap; +#if FFMPEG_OPT_MAP_CHANNEL typedef struct { int file_idx, stream_idx, channel_idx; // input int ofile_idx, ostream_idx; // output } AudioChannelMap; +#endif typedef struct OptionsContext { OptionGroup *g; @@ -141,8 +144,10 @@ typedef struct OptionsContext { /* output options */ StreamMap *stream_maps; int nb_stream_maps; +#if FFMPEG_OPT_MAP_CHANNEL AudioChannelMap *audio_channel_maps; /* one info entry per -map_channel */ int nb_audio_channel_maps; /* number of (valid) -map_channel settings */ +#endif int metadata_global_manual; int metadata_streams_manual; int metadata_chapters_manual; @@ -516,8 +521,10 @@ typedef struct OutputStream { int dropped_keyframe; /* audio only */ +#if FFMPEG_OPT_MAP_CHANNEL int *audio_channels_map; /* list of the channels id to pick from the source stream */ int audio_channels_mapped; /* number of channels in audio_channels_map */ +#endif char *logfile_prefix; FILE *logfile; |