mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 00:32:31 +00:00
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
This commit is contained in:
parent
58621b8d5b
commit
07a70b3825
5
ffplay.c
5
ffplay.c
@ -2671,6 +2671,11 @@ static void show_help(void)
|
|||||||
|
|
||||||
static void opt_input_file(const char *filename)
|
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, "-"))
|
if (!strcmp(filename, "-"))
|
||||||
filename = "pipe:";
|
filename = "pipe:";
|
||||||
input_filename = filename;
|
input_filename = filename;
|
||||||
|
Loading…
Reference in New Issue
Block a user