[FFmpeg-devel] [PATCH] Fix error message in cmdutils.c

Michael Niedermayer michaelni
Sun Feb 7 16:32:21 CET 2010


On Sun, Feb 07, 2010 at 04:08:59PM +0100, Stefano Sabatini wrote:
> Hi,
> 
> currently if the OPT_FUNC2 opt_ function returns a negative value,
> parse_options() prints:
> 
> $ ffprobe -format foo
> [...]
> Unknown flag: 'foo'
> ffprobe: unrecognized option 'format'
> 
> which isn't true as the option exists and is known.
> 
> With the patch attached this becomes:
> Unknown flag: 'foo'
> ffprobe: invalid value 'foo' for option 'format'
> 
> Regards.
> -- 
> FFmpeg = Furious and Fascinating Mystic Programmable Exciting Generator

>  cmdutils.c |    6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> ffeea6bbc99dd71e5ced35cab6943920b41afff1  fix-cmdutils-errmsg.patch

ok
[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I hate to see young programmers poisoned by the kind of thinking
Ulrich Drepper puts forward since it is simply too narrow -- Roman Shaposhnik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100207/1db2a4af/attachment.pgp>



More information about the ffmpeg-devel mailing list