[FFmpeg-devel] [PATCH] Enhance libavcodec/opt.c API

Michael Niedermayer michaelni
Sun May 11 19:09:02 CEST 2008

On Sun, May 11, 2008 at 06:08:06PM +0200, Stefano Sabatini wrote:
> Hi all,
> one of the main problems with the AVOption API is that it is
> impossible to distinguish when setting an option value if an option is
> simply not present in a context, or the provided value is wrong.
> This proposal adds a function named av_set_opt_string() which takes as
> parameter the pointer to the option to be set, this solution could
> eventually be extended to the other av_set_* and av_get_* functions
> (also improving efficiency in many cases).
> In this way you can check for the presence of an option with
> av_opt_find(), then use the av_set_opt_string() function on the found
> option to set its value, if the value provided is wrong then it will
> return NULL.

patch rejected

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Freedom in capitalist society always remains about the same as it was in
ancient Greek republics: Freedom for slave owners. -- Vladimir Lenin
-------------- 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/20080511/b836cb8d/attachment.pgp>

More information about the ffmpeg-devel mailing list