diff options
author | wm4 <wm4@nowhere> | 2017-08-07 19:31:15 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-08-07 19:31:15 +0200 |
commit | bbb57694b007645656faf4dcdd0438d056ca5696 (patch) | |
tree | bbf2f13c9dd28d3b5384cba0576fb16d52e95a3f /video/filter/vf_vapoursynth.c | |
parent | 168ffbaf23a26699140e3588dc80a6cd30cb59a9 (diff) | |
download | mpv-bbb57694b007645656faf4dcdd0438d056ca5696.tar.bz2 mpv-bbb57694b007645656faf4dcdd0438d056ca5696.tar.xz |
vf_vapoursynth: fix inverted sign and restore 10 bit support
Fixes #4720, I think.
Diffstat (limited to 'video/filter/vf_vapoursynth.c')
-rw-r--r-- | video/filter/vf_vapoursynth.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |