From a16251a6d0401c772bd985f4c611caf97ca5e537 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Wed, 26 Aug 2015 11:02:50 +0000 Subject: [PATCH] avfilter/vf_histogram: fix bug in checking pixel format flags Signed-off-by: Paul B Mahol --- libavfilter/vf_histogram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_histogram.c b/libavfilter/vf_histogram.c index ece0b13662..a712509f10 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); }