summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-05-12 09:03:50 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-05-12 09:03:50 +0000
commitfba11c94ffcd4f2b76ad777a02aaab3941e95817 (patch)
treedb86e64ac32f9e67825b4c79c1330820b7e58b58 /libvo
parentc445b76647a274ec4c4e811719881393a7a24813 (diff)
downloadmpv-fba11c94ffcd4f2b76ad777a02aaab3941e95817.tar.bz2
mpv-fba11c94ffcd4f2b76ad777a02aaab3941e95817.tar.xz
Fix crash with -flip on 64 bit systems, the result of
stride*height _must_ be sign extended. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23301 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_x11.c2
1 files changed, 1 insertions, 1 deletions
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);