[FFmpeg-cvslog] r22139 - trunk/ffplay.c

stefano subversion
Tue Mar 2 00:10:27 CET 2010


Author: stefano
Date: Tue Mar  2 00:10:27 2010
New Revision: 22139

Log:
Add a check in the case more than one input file is provided to ffplay, make it complains and abort as just one input file is supported.

Modified:
   trunk/ffplay.c

Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c	Tue Mar  2 00:02:56 2010	(r22138)
+++ trunk/ffplay.c	Tue Mar  2 00:10:27 2010	(r22139)
@@ -2671,6 +2671,11 @@ static void show_help(void)
 
 static void opt_input_file(const char *filename)
 {
+    if (input_filename) {
+        fprintf(stderr, "Argument '%s' provided as input filename, but '%s' was already specified.\n",
+                filename, input_filename);
+        exit(1);
+    }
     if (!strcmp(filename, "-"))
         filename = "pipe:";
     input_filename = filename;



More information about the ffmpeg-cvslog mailing list