summaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_histogram.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2015-08-26 11:02:50 +0000
committerPaul B Mahol <onemda@gmail.com>2015-08-26 11:11:26 +0000
commita16251a6d0401c772bd985f4c611caf97ca5e537 (patch)
treec660df0c9ed77b65f533b411615a21e5519dc1a1 /libavfilter/vf_histogram.c
parent3fbc9deb954c014bca224f7d85476ed5229e89b5 (diff)
downloadffmpeg-streaming-a16251a6d0401c772bd985f4c611caf97ca5e537.zip
ffmpeg-streaming-a16251a6d0401c772bd985f4c611caf97ca5e537.tar.gz
avfilter/vf_histogram: fix bug in checking pixel format flags
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/vf_histogram.c')
-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