[vlc-commits] [Git][videolan/vlc][master] freetype: fix region background dimension

Steve Lhomme (@robUx4) gitlab at videolan.org
Wed Dec 6 12:41:52 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
97865904 by Steve Lhomme at 2023-12-06T12:06:23+00:00
freetype: fix region background dimension

The text source video format is not reliable since fe415420f3ace0b91636884626ff1ddd6ef8c360.
We can use the picture dimension.

- - - - -


1 changed file:

- modules/text_renderer/freetype/freetype.c


Changes:

=====================================
modules/text_renderer/freetype/freetype.c
=====================================
@@ -516,9 +516,9 @@ static void RenderBackground( const subpicture_region_t *p_region_in,
                     {
                         .xMin = __MAX(0, segmentbgbox.xMin - p_regionbbox->xMin),
                         .xMax = VLC_CLIP(segmentbgbox.xMax - p_regionbbox->xMin,
-                                         0, p_region_in->fmt.i_visible_width),
+                                         0, p_picture->format.i_visible_width),
                         .yMin = VLC_CLIP(p_regionbbox->yMax - segmentbgbox.yMin,
-                                         0, p_region_in->fmt.i_visible_height),
+                                         0, p_picture->format.i_visible_height),
                         .yMax = __MAX(0, p_regionbbox->yMax - segmentbgbox.yMax),
                     };
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/97865904acf26a0641cd2a6b59c667ba7379a718

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/97865904acf26a0641cd2a6b59c667ba7379a718
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list