1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 23:02:37 +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;
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;