[MPlayer-cvslog] r23301 - trunk/libvo/vo_x11.c

reimar subversion at mplayerhq.hu
Sat May 12 11:03:50 CEST 2007


Author: reimar
Date: Sat May 12 11:03:50 2007
New Revision: 23301

Log:
Fix crash with -flip on 64 bit systems, the result of
stride*height _must_ be sign extended.


Modified:
   trunk/libvo/vo_x11.c

Modified: trunk/libvo/vo_x11.c
==============================================================================
--- trunk/libvo/vo_x11.c	(original)
+++ trunk/libvo/vo_x11.c	Sat May 12 11:03:50 2007
@@ -653,7 +653,7 @@ static int draw_slice(uint8_t * src[], i
     if (Flip_Flag)
     {
         dstStride[0] = -image_width * ((bpp + 7) / 8);
-        dst[0] = ImageData - dstStride[0] * (image_height - 1);
+        dst[0] = ImageData - (long)dstStride[0] * (image_height - 1);
     } else
     {
         dstStride[0] = image_width * ((bpp + 7) / 8);



More information about the MPlayer-cvslog mailing list