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

Stefano Sabatini stefano.sabatini-lala
Sun Feb 7 16:08:59 CET 2010


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'

FFmpeg = Furious and Fascinating Mystic Programmable Exciting Generator
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-cmdutils-errmsg.patch
Type: text/x-diff
Size: 797 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100207/fbb4c5b9/attachment.patch>

More information about the ffmpeg-devel mailing list