[FFmpeg-cvslog] r22738 - trunk/cmdutils.c
stefano
subversion
Wed Mar 31 01:46:30 CEST 2010
Author: stefano
Date: Wed Mar 31 01:46:30 2010
New Revision: 22738
Log:
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.
Modified:
trunk/cmdutils.c
Modified: trunk/cmdutils.c
==============================================================================
--- trunk/cmdutils.c Wed Mar 31 01:42:06 2010 (r22737)
+++ trunk/cmdutils.c Wed Mar 31 01:46:30 2010 (r22738)
@@ -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 {
More information about the ffmpeg-cvslog
mailing list