vo_gpu_next: render subtitles at video colorspace

This commit is contained in:
Kacper Michajłow 2023-12-05 12:57:02 +01:00 committed by Dudemanguy
parent d6981a4cac
commit 9325ebe817
1 changed files with 2 additions and 0 deletions

View File

@ -379,6 +379,8 @@ static void update_overlays(struct vo *vo, struct mp_osd_res res,
} }
break; break;
case SUBBITMAP_LIBASS: case SUBBITMAP_LIBASS:
if (src && item->video_color_space)
ol->color = src->params.color;
ol->mode = PL_OVERLAY_MONOCHROME; ol->mode = PL_OVERLAY_MONOCHROME;
ol->repr.alpha = PL_ALPHA_INDEPENDENT; ol->repr.alpha = PL_ALPHA_INDEPENDENT;
break; break;