projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f2c604
)
cmdutils: add missing NULL check in parse_options()
author
Stefano Sabatini
<stefano.sabatini-lala@poste.it>
Sun, 12 Jun 2011 11:54:22 +0000
(13:54 +0200)
committer
Anton Khirnov
<anton@khirnov.net>
Sun, 12 Jun 2011 12:19:45 +0000
(14:19 +0200)
Fix ffplay -i FILE, which was recently broken.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
cmdutils.c
patch
|
blob
|
history
diff --git
a/cmdutils.c
b/cmdutils.c
index
b9a5d1b
..
c73d5a1
100644
(file)
--- a/
cmdutils.c
+++ b/
cmdutils.c
@@
-277,7
+277,7
@@
unknown_opt:
*po->u.int64_arg = parse_number_or_die(opt, arg, OPT_INT64, INT64_MIN, INT64_MAX);
} else if (po->flags & OPT_FLOAT) {
*po->u.float_arg = parse_number_or_die(opt, arg, OPT_FLOAT, -INFINITY, INFINITY);
- } else {
+ } else
if (po->u.func_arg)
{
if (po->u.func_arg(opt, arg) < 0) {
fprintf(stderr, "%s: failed to set value '%s' for option '%s'\n", argv[0], arg, opt);
exit(1);