aboutsummaryrefslogtreecommitdiffstats
path: root/ffprobe.c
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2010-02-24 06:14:59 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2010-02-24 06:14:59 +0000
commitc8c0ac6b2618e92e75b37fce874a5378535e5358 (patch)
tree3d1a3a5f7a652ecfa56839c4fbf3ba9433bb3ef2 /ffprobe.c
parent9127a369ad35159ac61a3f9bf0b0f30c06fa309f (diff)
downloadffmpeg-c8c0ac6b2618e92e75b37fce874a5378535e5358.tar.gz
FFprobe: take only one input file.
Originally committed as revision 22014 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c4
1 files changed, 4 insertions, 0 deletions
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;