summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-09-05 10:02:06 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-09-05 10:02:06 +0000
commit3561e3a980426273126ca294d40581549f00c7cb (patch)
tree9bec0f771fe86abb5f27376a9af73e26ceeb798d /libvo
parentdf82620ed8dbdc5fd7bac3886efe45484dfbe210 (diff)
downloadmpv-3561e3a980426273126ca294d40581549f00c7cb.tar.bz2
mpv-3561e3a980426273126ca294d40581549f00c7cb.tar.xz
OSD alpha conversion index out of range
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16397 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_gl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index a857afec0d..639b2b5555 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -331,7 +331,7 @@ static void create_osd_texture(int x0, int y0, int w, int h,
char *tmp = (char *)malloc(stride * h);
// convert alpha from weird MPlayer scale.
// in-place is not possible since it is reused for future OSDs
- for (i = h * stride; i; i--)
+ for (i = h * stride - 1; i; i--)
tmp[i] = srca[i] - 1;
glUploadTex(gl_target, GL_ALPHA, GL_UNSIGNED_BYTE, tmp, stride,
0, 0, w, h, 0);