[PATCH 2/3] Issue a more general message when the function which sets an option fails.
Stefano Sabatini
stefano.sabatini-lala
Tue Mar 30 00:53:23 CEST 2010
It may fail not only because of an invalid value for the option, but
also for other reasons, e.g. memory problems etc.
---
cmdutils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cmdutils.c b/cmdutils.c
index f561316..057ecdb 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -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);
} else if (po->flags & OPT_FUNC2) {
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);
}
} else {
--
1.7.0
--5mCyUwZo2JvN/JJP--
More information about the ffmpeg-devel
mailing list