diff --git a/video/filter/vf_vapoursynth.c b/video/filter/vf_vapoursynth.c index b9aed339aa..3ed3c01969 100644 --- a/video/filter/vf_vapoursynth.c +++ b/video/filter/vf_vapoursynth.c @@ -128,7 +128,7 @@ static bool compare_fmt(int imgfmt, const struct mpvs_fmt *vs) return false; if (rfmt.chroma_w != vs->cw || rfmt.chroma_h != vs->ch) return false; - if (rfmt.component_size * 8 - rfmt.component_pad != vs->bits) + if (rfmt.component_size * 8 + rfmt.component_pad != vs->bits) return false; if (rfmt.num_planes != 3) return false;