Mercurial > mplayer.hg
changeset 23283:907b3bb595c7
Fix crash with -flip on 64 bit systems, the result of
stride*height _must_ be sign extended.
author | reimar |
---|---|
date | Sat, 12 May 2007 09:03:50 +0000 |
parents | 4e416a0d7665 |
children | dc2c6e97119c |
files | libvo/vo_x11.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_x11.c Sat May 12 08:54:44 2007 +0000 +++ b/libvo/vo_x11.c Sat May 12 09:03:50 2007 +0000 @@ -653,7 +653,7 @@ 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);