From 07a70b3825b10e314fbf2ffa45d162b7824a1ca4 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Mon, 1 Mar 2010 23:10:27 +0000 Subject: Add a check for checking if more than one input file is provided to ffplay, make it complain and abort in that case as just one input file is currently supported. Originally committed as revision 22139 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffplay.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ffplay.c') diff --git a/ffplay.c b/ffplay.c index 16a4258334..b6b185e00d 100644 --- a/ffplay.c +++ b/ffplay.c @@ -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; -- cgit v1.2.3