avfilter/vf_mergeplanes: Avoid using non public AV_PIX_FMT_NB
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 27 May 2014 15:43:03 +0000 (17:43 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 27 May 2014 15:44:15 +0000 (17:44 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_mergeplanes.c

index 6fec816..c76e82a 100644 (file)
@@ -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)