[FFmpeg-devel] [PATCH 1/2] Deprecate av_opt_show() in favor of a new function av_opt_show2(), which allows to specify only a subset of all the options to show.

Stefano Sabatini stefano.sabatini-lala
Fri Sep 24 02:55:10 CEST 2010


On date Tuesday 2010-09-21 00:35:40 +0200, Michael Niedermayer encoded:
> On Mon, Sep 20, 2010 at 09:12:28PM +0200, Stefano Sabatini wrote:
> [...]
> > diff --git a/libavcodec/opt.h b/libavcodec/opt.h
> > index 9f0da72..ef888a1 100644
> > --- a/libavcodec/opt.h
> > +++ b/libavcodec/opt.h
> > @@ -204,7 +204,25 @@ AVRational av_get_q(void *obj, const char *name, const AVOption **o_out);
> >  int64_t av_get_int(void *obj, const char *name, const AVOption **o_out);
> >  const char *av_get_string(void *obj, const char *name, const AVOption **o_out, char *buf, int buf_len);
> >  const AVOption *av_next_option(void *obj, const AVOption *last);
> > -int av_opt_show(void *obj, void *av_log_obj);
> > +
> > +#if FF_API_OPT_SHOW
> > +/**
> > + * @deprecated Use av_opt_show2() instead.
> > + */
> > +attribute_deprecated int av_opt_show(void *obj, void *av_log_obj);
> > +#endif
> > +
> > +/**
> > + * Show the obj options.
> > + *
> > + * @param req_flags requested flags for the options to show. Only the
> > + * options for which it is at least opt->flags & req_flags are shown.
> > + * @param rej_flags rejected flags for the options to show. Only the
> > + * options for which it is !(opt->flags & req_flags) are shown.
> 
> maybe some native could say this clearer
> except that it should be ok

Applied with some minor editing.
-- 
FFmpeg = Fabulous and Freak Muttering Purposeless Extreme Guide



More information about the ffmpeg-devel mailing list