1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-23 07:12:39 +00:00

vf_vapoursynth: fix inverted sign and restore 10 bit support

Fixes #4720, I think.
This commit is contained in:
wm4 2017-08-07 19:31:15 +02:00
parent 168ffbaf23
commit bbb57694b0

View File

@ -128,7 +128,7 @@ static bool compare_fmt(int imgfmt, const struct mpvs_fmt *vs)
return false; return false;
if (rfmt.chroma_w != vs->cw || rfmt.chroma_h != vs->ch) if (rfmt.chroma_w != vs->cw || rfmt.chroma_h != vs->ch)
return false; return false;
if (rfmt.component_size * 8 - rfmt.component_pad != vs->bits) if (rfmt.component_size * 8 + rfmt.component_pad != vs->bits)
return false; return false;
if (rfmt.num_planes != 3) if (rfmt.num_planes != 3)
return false; return false;