Commit cb4f1a15 authored by stefano's avatar stefano

Add a check in the case more than one input file is provided to ffplay, make...

Add a check in the case more than one input file is provided to ffplay, make it complains and abort as just one input file is supported.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22139 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b89f74a0
......@@ -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