[FFmpeg-devel] [PATCH] lavfi: make pix_fmt_is_in() in vf_lut.c an internal function

Stefano Sabatini stefano.sabatini-lala at poste.it
Fri Jul 1 12:15:10 CEST 2011


On date Thursday 2011-06-30 15:03:15 +0200, Michael Niedermayer encoded:
> On Thu, Jun 30, 2011 at 10:09:49AM +0200, Stefano Sabatini wrote:
> > Also generalize it, making it accepts ints rather than pixel formats.
> > Allow factorization.
> > ---
> >  libavfilter/formats.c  |   11 +++++++++++
> >  libavfilter/internal.h |    3 +++
> >  libavfilter/vf_lut.c   |   15 +++------------
> >  3 files changed, 17 insertions(+), 12 deletions(-)
> > 
> > diff --git a/libavfilter/formats.c b/libavfilter/formats.c
> > index eccb523..0d70765 100644
> > --- a/libavfilter/formats.c
> > +++ b/libavfilter/formats.c
> > @@ -22,6 +22,7 @@
> >  #include "libavutil/pixdesc.h"
> >  #include "libavutil/audioconvert.h"
> >  #include "avfilter.h"
> > +#include "internal.h"
> >  
> >  /**
> >   * Add all refs from a to ret and destroy a.
> > @@ -73,6 +74,16 @@ AVFilterFormats *avfilter_merge_formats(AVFilterFormats *a, AVFilterFormats *b)
> >      return ret;
> >  }
> >  
> > +int ff_fmt_is_in(int fmt, int *fmts)
> 
> const int *fmts
> otherwise LGTM

Pushed with that change.
-- 
FFmpeg = Fundamentalist & Frenzy Meaningful Portable Erudite Glue


More information about the ffmpeg-devel mailing list