Commit 9b6b7072 authored by stefano's avatar stefano

Issue a more general message when the function which sets an option

fails.

It may fail not only because of an invalid value for the option, but
also for other reasons, e.g. memory problems etc.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22738 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 96f9de7b
...@@ -170,7 +170,7 @@ unknown_opt: ...@@ -170,7 +170,7 @@ unknown_opt:
*po->u.float_arg = parse_number_or_die(opt, arg, OPT_FLOAT, -1.0/0.0, 1.0/0.0); *po->u.float_arg = parse_number_or_die(opt, arg, OPT_FLOAT, -1.0/0.0, 1.0/0.0);
} else if (po->flags & OPT_FUNC2) { } else if (po->flags & OPT_FUNC2) {
if (po->u.func2_arg(opt, arg) < 0) { if (po->u.func2_arg(opt, arg) < 0) {
fprintf(stderr, "%s: invalid value '%s' for option '%s'\n", argv[0], arg, opt); fprintf(stderr, "%s: failed to set value '%s' for option '%s'\n", argv[0], arg, opt);
exit(1); exit(1);
} }
} else { } else {
......
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