[FFmpeg-devel] [PATCH] Improve ffpreset error messages

Michael Niedermayer michaelni
Thu Nov 20 12:12:19 CET 2008


On Thu, Nov 20, 2008 at 12:57:00AM +0100, Stefano Sabatini wrote:
> Hi all,
> 
> sorry for the pickyness, maybe they should go in two separate commits.
> 
> The first change provides the exact line showing a syntax problem,
> like here:
> ./ffpresets/libx264-bugged.ffpreset: Invalid syntax: foobar baz # foo
> 
> the second one uses the exact line found in the file, for example the
> user could specify "key=    value" while the message will tell: 
> "Invalid option or argument: key=value"

could be 'Invalid option or argument: "%s", parsed as %s = %s'

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

Many that live deserve death. And some that die deserve life. Can you give
it to them? Then do not be too eager to deal out death in judgement. For
even the very wise cannot see all ends. -- Gandalf
-------------- 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/20081120/2da5c5b5/attachment.pgp>



More information about the ffmpeg-devel mailing list