mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/vf_vectorscope: fix bug in checking pixel format flags
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
6455e4fb5b
commit
3fbc9deb95
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user