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

Michael Niedermayer michaelni at gmx.at
Thu Jun 30 15:03:15 CEST 2011


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

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Those who are too smart to engage in politics are punished by being
governed by those who are dumber. -- Plato 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110630/e7ea0797/attachment.asc>


More information about the ffmpeg-devel mailing list