avfilter/vf_mergeplanes: Avoid using non public AV_PIX_FMT_NB

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/72/head
Michael Niedermayer 11 years ago
parent c0f8801e47
commit 1dbc98461b
  1. 2
      libavfilter/vf_mergeplanes.c

@ -120,7 +120,7 @@ static int query_formats(AVFilterContext *ctx)
int i; int i;
s->outdesc = av_pix_fmt_desc_get(s->out_fmt); 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); const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(i);
if (desc->comp[0].depth_minus1 == s->outdesc->comp[0].depth_minus1 && if (desc->comp[0].depth_minus1 == s->outdesc->comp[0].depth_minus1 &&
av_pix_fmt_count_planes(i) == desc->nb_components) av_pix_fmt_count_planes(i) == desc->nb_components)

Loading…
Cancel
Save