From 1dbc98461b62fa0215c916e8ae79cd12c8a2ae75 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 27 May 2014 17:43:03 +0200 Subject: [PATCH] avfilter/vf_mergeplanes: Avoid using non public AV_PIX_FMT_NB Signed-off-by: Michael Niedermayer --- libavfilter/vf_mergeplanes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_mergeplanes.c b/libavfilter/vf_mergeplanes.c index 6fec816a4a..c76e82a419 100644 --- a/libavfilter/vf_mergeplanes.c +++ b/libavfilter/vf_mergeplanes.c @@ -120,7 +120,7 @@ static int query_formats(AVFilterContext *ctx) int i; s->outdesc = av_pix_fmt_desc_get(s->out_fmt); - for (i = 0; i < AV_PIX_FMT_NB; i++) { + for (i = 0; av_pix_fmt_desc_get(i); i++) { const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(i); if (desc->comp[0].depth_minus1 == s->outdesc->comp[0].depth_minus1 && av_pix_fmt_count_planes(i) == desc->nb_components)