Mercurial > mplayer.hg
diff libass/ass_bitmap.c @ 28802:0d4550d07af0
Fix \be blur start position.
author | greg |
---|---|
date | Fri, 06 Mar 2009 09:20:14 +0000 |
parents | 65b83aee82fb |
children | 0f1b5b68af32 |
line wrap: on
line diff
--- a/libass/ass_bitmap.c Fri Mar 06 09:20:09 2009 +0000 +++ b/libass/ass_bitmap.c Fri Mar 06 09:20:14 2009 +0000 @@ -264,7 +264,7 @@ unsigned int old_sum, new_sum; for (y=0; y<h; y++) { - old_sum = 2 * buf[0]; + old_sum = 2 * buf[y*w]; for (x=0; x<w-1; x++) { new_sum = buf[y*w+x] + buf[y*w+x+1]; buf[y*w+x] = (old_sum + new_sum) >> 2; @@ -273,7 +273,7 @@ } for (x=0; x<w; x++) { - old_sum = 2 * buf[0]; + old_sum = 2 * buf[x]; for (y=0; y<h-1; y++) { new_sum = buf[y*w+x] + buf[(y+1)*w+x]; buf[y*w+x] = (old_sum + new_sum) >> 2;