On Tue, Jun 14, 2011 at 08:39:53PM +0200, Anton Khirnov wrote: > --- > cmdutils.c | 6 +++--- > ffserver.c | 2 +- > libavutil/avutil.h | 3 +++ > libavutil/log.h | 7 +++++++ > libavutil/opt.c | 30 +++++++++++++++++++++++++----- > libavutil/opt.h | 31 +++++++++++++++++++++++++++++++ > 6 files changed, 70 insertions(+), 9 deletions(-) > > --- a/libavutil/opt.h > +++ b/libavutil/opt.h > @@ -206,4 +211,30 @@ int av_opt_flag_is_set(void *obj, const char > *field_name, const char *flag_name) > + > +/** > + * Look for an option in an object. Consider only options which > + * have all the specified flags set.
What's an "object" here? > + * @param[in] obj A pointer to a struct whose first element is a > + * pointer to an AVClass. > + * @param[in] name The name of the option to look for. > + * @param[in] unit When searching for named constants, name of the unit > + * it belongs to. What's a "unit" here? > + * @note Options found with AV_OPT_SEARCH_CHILDREN flag may not be settable with the > + * directly with av_set_string3(). Use special calls which take an options s/with/via/ > + * AVDictionary (e.g. avformat_open_input()) to set options found with this > + * flag. The note mystifies me. Diego _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
