From 3fbc9deb954c014bca224f7d85476ed5229e89b5 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Wed, 26 Aug 2015 11:01:03 +0000 Subject: avfilter/vf_vectorscope: fix bug in checking pixel format flags Signed-off-by: Paul B Mahol --- libavfilter/vf_vectorscope.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavfilter/vf_vectorscope.c') diff --git a/libavfilter/vf_vectorscope.c b/libavfilter/vf_vectorscope.c index dc88a6ce49..dbcf67517e 100644 --- a/libavfilter/vf_vectorscope.c +++ b/libavfilter/vf_vectorscope.c @@ -119,7 +119,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); } -- cgit v1.2.3