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:
Oneric 2022-11-02 18:16:00 +01:00 committed by Leo Izen
parent c5b258b490
commit c416a38ef2
1 changed files with 2 additions and 1 deletions

View File

@ -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;
bool basic_conv = params.color.space == MP_CSP_BT_709 &&