comparison libvo/vo_x11.c @ 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
comparison
equal deleted inserted replaced
23282:4e416a0d7665 23283:907b3bb595c7
651 dst[1] = dst[2] = NULL; 651 dst[1] = dst[2] = NULL;
652 652
653 if (Flip_Flag) 653 if (Flip_Flag)
654 { 654 {
655 dstStride[0] = -image_width * ((bpp + 7) / 8); 655 dstStride[0] = -image_width * ((bpp + 7) / 8);
656 dst[0] = ImageData - dstStride[0] * (image_height - 1); 656 dst[0] = ImageData - (long)dstStride[0] * (image_height - 1);
657 } else 657 } else
658 { 658 {
659 dstStride[0] = image_width * ((bpp + 7) / 8); 659 dstStride[0] = image_width * ((bpp + 7) / 8);
660 dst[0] = ImageData; 660 dst[0] = ImageData;
661 } 661 }