diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c index 4053cfd765..523d2dd0b3 100644 --- a/libvo/vo_x11.c +++ b/libvo/vo_x11.c @@ -653,7 +653,7 @@ static int draw_slice(uint8_t * src[], int stride[], int w, int h, 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);