[FFmpeg-devel] [PATCH] Enhance ffmpeg.c:opt_default()

Stefano Sabatini stefano.sabatini-lala
Mon May 12 23:53:48 CEST 2008

Hi all,

actually opt_default() will keep trying to set an option even if it
fails to set it in some context.

The correct (or a more correct behaviour) seems to simply give up when
the option is found the first time but its value is invalid for that
context, in this case the program immediatly exits.

Also the patch make opt_default() distinguishes if an option wasn't
found in all the checked contexts or if the option was found in some
context but its value was invalid.

Best regards.
FFmpeg = Frenzy and Fantastic MultiPurpose EnGine
-------------- next part --------------
A non-text attachment was scrubbed...
Name: enhance-opt-default-00.patch
Type: text/x-diff
Size: 2072 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080512/2092de3a/attachment.patch>

More information about the ffmpeg-devel mailing list