From bbb57694b007645656faf4dcdd0438d056ca5696 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 7 Aug 2017 19:31:15 +0200 Subject: vf_vapoursynth: fix inverted sign and restore 10 bit support Fixes #4720, I think. --- video/filter/vf_vapoursynth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/filter') 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; -- cgit v1.2.3