From c8c0ac6b2618e92e75b37fce874a5378535e5358 Mon Sep 17 00:00:00 2001 From: Ramiro Polla Date: Wed, 24 Feb 2010 06:14:59 +0000 Subject: [PATCH] FFprobe: take only one input file. Originally committed as revision 22014 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffprobe.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ffprobe.c b/ffprobe.c index c404e87bb1..31bcd3dc7d 100644 --- a/ffprobe.c +++ b/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;