[vlc-commits] video_text: copy the output colorspace into the region colorspace

Steve Lhomme git at videolan.org
Fri Apr 13 12:45:34 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Apr 13 12:34:30 2018 +0200| [08b8ef7cf313971c69d401a9b05c3b788d08e8d2] | committer: Steve Lhomme

video_text: copy the output colorspace into the region colorspace

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=08b8ef7cf313971c69d401a9b05c3b788d08e8d2
---

 src/video_output/video_text.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/video_output/video_text.c b/src/video_output/video_text.c
index 58566b4ec6..ef2b094e7c 100644
--- a/src/video_output/video_text.c
+++ b/src/video_output/video_text.c
@@ -93,6 +93,11 @@ static void OSDTextUpdate(subpicture_t *subpic,
         r->i_y += margin_v + fmt_dst->i_y_offset;
     else if (r->i_align & SUBPICTURE_ALIGN_BOTTOM )
         r->i_y += margin_v - fmt_dst->i_y_offset;
+
+    r->fmt.transfer  = fmt_dst->transfer;
+    r->fmt.primaries = fmt_dst->primaries;
+    r->fmt.space     = fmt_dst->space;
+    r->fmt.mastering = fmt_dst->mastering;
 }
 
 static void OSDTextDestroy(subpicture_t *subpic)



More information about the vlc-commits mailing list