mirror of https://github.com/mpv-player/mpv
vo_gpu_next: render subtitles at video colorspace
This commit is contained in:
parent
d6981a4cac
commit
9325ebe817
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue