Commit c97ea011 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_histogram: Fix order of operations with flags

Fixes CID1322325
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent e5aa6f70
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment