avfilter/vf_vectorscope: fix bug in checking pixel format flags
authorPaul B Mahol <onemda@gmail.com>
Wed, 26 Aug 2015 11:01:03 +0000 (11:01 +0000)
committerPaul B Mahol <onemda@gmail.com>
Wed, 26 Aug 2015 11:11:26 +0000 (11:11 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/vf_vectorscope.c

index dc88a6c..dbcf675 100644 (file)
@@ -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);
     }