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;