[vlc-commits] Win32: the dimensions of the unclipped source rectangle should be the original format of the video

Felix Abecassis git at videolan.org
Wed Mar 12 19:18:06 CET 2014


vlc | branch: master | Felix Abecassis <felix.abecassis at gmail.com> | Wed Mar 12 16:48:17 2014 +0100| [6cddc0388fec4ff572f33fcabfe9a5fa87c2b1b1] | committer: Felix Abecassis

Win32: the dimensions of the unclipped source rectangle should be the original format of the video

Fix #10886

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

 modules/video_output/msw/common.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/msw/common.c b/modules/video_output/msw/common.c
index 529db39..fbf790c 100644
--- a/modules/video_output/msw/common.c
+++ b/modules/video_output/msw/common.c
@@ -403,8 +403,8 @@ void UpdateRects(vout_display_t *vd,
     /* src image dimensions */
     rect_src.left   = 0;
     rect_src.top    = 0;
-    rect_src.right  = source->i_visible_width;
-    rect_src.bottom = source->i_visible_height;
+    rect_src.right  = vd->fmt.i_visible_width;
+    rect_src.bottom = vd->fmt.i_visible_height;
 
     /* Clip the source image */
     rect_src_clipped.left = source->i_x_offset +



More information about the vlc-commits mailing list