[FFmpeg-cvslog] avfilter/vf_vectorscope: fix bug in checking pixel format flags

Paul B Mahol git at videolan.org
Wed Aug 26 13:11:37 CEST 2015


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Aug 26 11:01:03 2015 +0000| [3fbc9deb954c014bca224f7d85476ed5229e89b5] | committer: Paul B Mahol

avfilter/vf_vectorscope: fix bug in checking pixel format flags

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3fbc9deb954c014bca224f7d85476ed5229e89b5
---

 libavfilter/vf_vectorscope.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_vectorscope.c b/libavfilter/vf_vectorscope.c
index dc88a6c..dbcf675 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);
     }
 



More information about the ffmpeg-cvslog mailing list