diff options
author | Benjamin Larsson <benjamin@southpole.se> | 2011-03-08 15:29:46 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-05-11 07:32:36 +0200 |
commit | 91199cfe55b1398b23a16b1f55df75e62e05198b (patch) | |
tree | 3741902e27ad258e37f21dd430e9bfe55ea56a13 /cmdutils.c | |
parent | ffc437c026dd0e1b8e5d9114163b4e95999b95fd (diff) | |
download | ffmpeg-91199cfe55b1398b23a16b1f55df75e62e05198b.tar.gz |
ffplay: add a dummy option -i so that it is easy to switch between ffmpeg -i "file" and ffplay -i "file".
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'cmdutils.c')
-rw-r--r-- | cmdutils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmdutils.c b/cmdutils.c index f95778822e..feeea694d8 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -281,8 +281,8 @@ unknown_opt: fprintf(stderr, "%s: failed to set value '%s' for option '%s'\n", argv[0], arg, opt); exit(1); } - } else { - po->u.func_arg(arg); + } else if (po->u.func_arg) { + po->u.func_arg(arg); } if(po->flags & OPT_EXIT) exit(0); |