[FFmpeg-devel] [PATCH 2/6] ffmpeg.c: allow using negative file indices to disable metadata copying
Anton Khirnov
anton
Tue Nov 2 22:04:01 CET 2010
---
ffmpeg.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index 26237a2..6daa260 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2348,6 +2348,8 @@ static int transcode(AVFormatContext **output_files,
int out_file_index = meta_data_maps[i][0].file;
int in_file_index = meta_data_maps[i][1].file;
+ if (in_file_index < 0 || out_file_index < 0)
+ continue;
METADATA_CHECK_INDEX(out_file_index, nb_output_files, "output file")
METADATA_CHECK_INDEX(in_file_index, nb_input_files, "input file")
--
1.7.2.3
More information about the ffmpeg-devel
mailing list