mirror of https://github.com/mpv-player/mpv
sd_ass: never mangle colours on RGB video
It turns out, even xy-VSFilter and XySubFilter do not mangle colours if the video is native RGB regardless of the sub's YCbCr header. libass' docs were also updated to reflect this.
This commit is contained in:
parent
c5b258b490
commit
c416a38ef2
|
@ -904,7 +904,8 @@ static void mangle_colors(struct sd *sd, struct sub_bitmaps *parts)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (csp == params.color.space && levels == params.color.levels)
|
if ((csp == params.color.space && levels == params.color.levels) ||
|
||||||
|
params.color.space == MP_CSP_RGB) // Even VSFilter doesn't mangle on RGB video
|
||||||
return;
|
return;
|
||||||
|
|
||||||
bool basic_conv = params.color.space == MP_CSP_BT_709 &&
|
bool basic_conv = params.color.space == MP_CSP_BT_709 &&
|
||||||
|
|
Loading…
Reference in New Issue