Browse Source

avfilter/vf_histogram: Fix order of operations with flags

Fixes CID1322325

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n2.8
Michael Niedermayer 9 years ago
parent
commit
c97ea011f5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/vf_histogram.c

+ 1
- 1
libavfilter/vf_histogram.c View File

@@ -180,7 +180,7 @@ static int query_formats(AVFilterContext *ctx)
bits = desc->comp[0].depth_minus1;
for (i = 1; i < avff->nb_formats; i++) {
desc = av_pix_fmt_desc_get(avff->formats[i]);
if ((rgb != desc->flags & AV_PIX_FMT_FLAG_RGB) ||
if ((rgb != (desc->flags & AV_PIX_FMT_FLAG_RGB)) ||
(bits != desc->comp[0].depth_minus1))
return AVERROR(EAGAIN);
}


Loading…
Cancel
Save