[MPlayer-cvslog] CVS: main/libvo vo_gl.c,1.91,1.92
Reimar Döffinger CVS
syncmail at mplayerhq.hu
Mon Sep 5 12:02:09 CEST 2005
CVS change done by Reimar Döffinger CVS
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv23084
Modified Files:
vo_gl.c
Log Message:
OSD alpha conversion index out of range
Index: vo_gl.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_gl.c,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -r1.91 -r1.92
--- vo_gl.c 25 Aug 2005 12:45:57 -0000 1.91
+++ vo_gl.c 5 Sep 2005 10:02:06 -0000 1.92
@@ -331,7 +331,7 @@
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);
More information about the MPlayer-cvslog
mailing list