summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-10 12:06:41 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-10 12:06:41 +0000
commitc0fc839f3a03d6d39f724fa82ad474b33fcdfda1 (patch)
treeea0ef3ac64158fa1eff8654ce39cafd79d72b339 /libvo
parent384cb8f2a38a44ae25b2eac6f58e6d7509137aae (diff)
downloadmpv-c0fc839f3a03d6d39f724fa82ad474b33fcdfda1.tar.bz2
mpv-c0fc839f3a03d6d39f724fa82ad474b33fcdfda1.tar.xz
Fix off-by-one error for negative strides (flipped image)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18993 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/gl_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/gl_common.c b/libvo/gl_common.c
index b7910ede2c..ba14ebed21 100644
--- a/libvo/gl_common.c
+++ b/libvo/gl_common.c
@@ -490,7 +490,7 @@ void glUploadTex(GLenum target, GLenum format, GLenum type,
if (slice <= 0)
slice = h;
if (stride < 0) {
- data += h * stride;
+ data += (h - 1) * stride;
stride = -stride;
}
// this is not always correct, but should work for MPlayer