Browse Source

avfilter/vf_vectorscope: fix bug in checking pixel format flags

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n2.8
Paul B Mahol 9 years ago
parent
commit
3fbc9deb95
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/vf_vectorscope.c

+ 1
- 1
libavfilter/vf_vectorscope.c View File

@@ -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…
Cancel
Save