Mercurial > mplayer.hg
changeset 16396:9695d4401cef
OSD alpha conversion index out of range
author | reimar |
---|---|
date | Mon, 05 Sep 2005 10:02:06 +0000 |
parents | e867b84178bd |
children | 8dac3fb10a1b |
files | libvo/vo_gl.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_gl.c Mon Sep 05 09:43:13 2005 +0000 +++ b/libvo/vo_gl.c Mon Sep 05 10:02:06 2005 +0000 @@ -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);