mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/vf_histogram: Fix order of operations with flags
Fixes CID1322325 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
e5aa6f7021
commit
c97ea011f5
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user