Commit 07a70b38 authored by Stefano Sabatini's avatar Stefano Sabatini

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
parent 58621b8d
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment