summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-03-30 23:46:30 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-03-30 23:46:30 +0000
commit330d86f59377aca20372ba2e758f75e6ce45c4c2 (patch)
treede73eab83d0ae151472ade5a0dba3c431b3da48e
parentfc8b1075e1f74ab14798e8698bd818eb1a14b938 (diff)
downloadffmpeg-330d86f59377aca20372ba2e758f75e6ce45c4c2.tar.gz
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. Originally committed as revision 22738 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--cmdutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdutils.c b/cmdutils.c
index 7964befd4c..c2c44c67ff 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 {