Skip to content
Snippets Groups Projects
Commit 3fbc9deb authored by Paul B Mahol's avatar Paul B Mahol
Browse files

avfilter/vf_vectorscope: fix bug in checking pixel format flags


Signed-off-by: default avatarPaul B Mahol <onemda@gmail.com>
parent 6455e4fb
No related branches found
No related tags found
No related merge requests found
...@@ -119,7 +119,7 @@ static int query_formats(AVFilterContext *ctx) ...@@ -119,7 +119,7 @@ static int query_formats(AVFilterContext *ctx)
rgb = desc->flags & AV_PIX_FMT_FLAG_RGB; rgb = desc->flags & AV_PIX_FMT_FLAG_RGB;
for (i = 1; i < avff->nb_formats; i++) { for (i = 1; i < avff->nb_formats; i++) {
desc = av_pix_fmt_desc_get(avff->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); return AVERROR(EAGAIN);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment