[FFmpeg-devel] [PATCH] Implement av_set_options_string()

Stefano Sabatini stefano.sabatini-lala
Wed May 13 23:44:22 CEST 2009


On date Tuesday 2009-05-12 01:11:58 +0200, Michael Niedermayer encoded:
> On Mon, May 11, 2009 at 11:23:01PM +0200, Stefano Sabatini wrote:
[...]
> > +/**
> > + * Parses the key/value pairs list in opts. For each key/value pair
> > + * found, stores the value in the field in ctx that is named like the
> > + * key. ctx must be an AVClass context, storing is done using
> > + * AVOptions.
> > + *
> > + * @param key_val_sep a 0-terminated list of characters used to
> > + * separate key from value
> > + * @param pairs_sep a 0-terminated list of characters used to separate
> > + * two pairs from each other
> > + * @return the number of successfully set key/value pairs, a negative
> > + * value corresponding to an AVERROR* error code if opts cannot be
> > + * parsed, if no matching option exists for a key, or if a value is
> > + * not valid
> 
> please document which codes are used for which case

I'm documenting it indirectly with a reference to the av_set_string3()
error codes, hope it's OK like this.

Regards.
-- 
FFmpeg = Foolish Fantastic Meaningful Peaceful Encoding/decoding God
-------------- next part --------------
A non-text attachment was scrubbed...
Name: parseutils-implement-set-options.patch
Type: text/x-diff
Size: 6666 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090513/3a190429/attachment.patch>



More information about the ffmpeg-devel mailing list