[vlc-commits] vout: epg: fix original size/spu scaling

Francois Cartegnie git at videolan.org
Mon Jun 5 16:48:04 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Jun  1 17:24:24 2017 +0200| [f48ca1176d3de6cdfc6917909f0af8abd6a5abe9] | committer: Francois Cartegnie

vout: epg: fix original size/spu scaling

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

 src/video_output/video_epg.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/video_output/video_epg.c b/src/video_output/video_epg.c
index e432ce19ec..d0d86e430a 100644
--- a/src/video_output/video_epg.c
+++ b/src/video_output/video_epg.c
@@ -259,8 +259,9 @@ static void OSDEpgUpdate(subpicture_t *subpic,
     fmt.i_visible_width = fmt.i_visible_width * fmt.i_sar_num / fmt.i_sar_den;
     fmt.i_x_offset      = fmt.i_x_offset      * fmt.i_sar_num / fmt.i_sar_den;
 
-    subpic->i_original_picture_width  = fmt.i_width;
-    subpic->i_original_picture_height = fmt.i_height;
+    subpic->i_original_picture_width  = fmt.i_visible_width;
+    subpic->i_original_picture_height = fmt.i_visible_height;
+
     subpic->p_region = vout_BuildOSDEpg(sys->epg,
                                         sys->time,
                                         fmt.i_x_offset,



More information about the vlc-commits mailing list