[FFmpeg-cvslog] avfilter/vf_histogram: 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:02:50 2015 +0000| [a16251a6d0401c772bd985f4c611caf97ca5e537] | committer: Paul B Mahol

avfilter/vf_histogram: 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=a16251a6d0401c772bd985f4c611caf97ca5e537
---

 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 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);
         }
 



More information about the ffmpeg-cvslog mailing list