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

Stefano Sabatini stefano.sabatini-lala
Thu Nov 20 00:57:00 CET 2008


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"

which is (slightly) confusing, for example the string "key=value" will
fail to be found by grepping the bugged file.

Regards.
-- 
FFmpeg = Funny & Funny Merciless Patchable Erudite Gorilla
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg-pre-ctx-00.patch
Type: text/x-diff
Size: 859 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081120/f5ecc52d/attachment.patch>



More information about the ffmpeg-devel mailing list