[FFmpeg-cvslog] r25706 - trunk/ffmpeg.c

elenril subversion
Mon Nov 8 07:47:41 CET 2010


Author: elenril
Date: Mon Nov  8 07:47:41 2010
New Revision: 25706

Log:
ffmpeg.c: allow using negative file indices to disable metadata copying

Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	Sun Nov  7 23:56:29 2010	(r25705)
+++ trunk/ffmpeg.c	Mon Nov  8 07:47:41 2010	(r25706)
@@ -2346,6 +2346,8 @@ static int transcode(AVFormatContext **o
 
         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")
 



More information about the ffmpeg-cvslog mailing list