summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libavfilter/vf_histogram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_histogram.c b/libavfilter/vf_histogram.c
index ece0b13..a712509 100644
--- a/libavfilter/vf_histogram.c
+++ b/libavfilter/vf_histogram.c
@@ -150,7 +150,7 @@ static int query_formats(AVFilterContext *ctx)
rgb = desc->flags & AV_PIX_FMT_FLAG_RGB;
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))
return AVERROR(EAGAIN);
}
OpenPOWER on IntegriCloud