Browse Source

FFprobe: take only one input file.

Originally committed as revision 22014 to svn://svn.ffmpeg.org/ffmpeg/trunk
Ramiro Polla 15 years ago
parent
commit
c8c0ac6b26
1 changed files with 4 additions and 0 deletions
  1. 4 0
      ffprobe.c

+ 4 - 0
ffprobe.c

@@ -290,6 +290,10 @@ static void opt_format(const char *arg)
 
 static void opt_input_file(const char *filename)
 {
+    if (input_filename) {
+        fprintf(stderr, "Input filename already specified: %s\n", filename);
+        exit(1);
+    }
     if (!strcmp(filename, "-"))
         filename = "pipe:";
     input_filename = filename;