提交 de859358 编写于 作者: S Stefano Sabatini 提交者: Anton Khirnov

cmdutils: add missing NULL check in parse_options()

Fix ffplay -i FILE, which was recently broken.
Signed-off-by: NAnton Khirnov <anton@khirnov.net>
上级 2f2c6040
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册