diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-09-04 00:02:03 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-09-04 00:02:03 +0300 |
commit | c97ea011f57f7a42f249ff5c1d4d7b21c43dc104 (patch) | |
tree | 814f1b6f971eff5d93e7d1918675b222d71e8ea5 /libavfilter/vf_histogram.c | |
parent | e5aa6f702130f1afd53c61d058c2ebc48e61e9ea (diff) |
avfilter/vf_histogram: Fix order of operations with flags
Fixes CID1322325
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter/vf_histogram.c')
-rw-r--r-- | libavfilter/vf_histogram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_histogram.c b/libavfilter/vf_histogram.c index e9df420362..443cbda660 100644 --- a/libavfilter/vf_histogram.c +++ b/libavfilter/vf_histogram.c @@ -180,7 +180,7 @@ static int query_formats(AVFilterContext *ctx) bits = desc->comp[0].depth_minus1; 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)) || (bits != desc->comp[0].depth_minus1)) return AVERROR(EAGAIN); } |