diff options
author | greg <greg@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-03-06 09:20:14 +0000 |
---|---|---|
committer | greg <greg@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-03-06 09:20:14 +0000 |
commit | 27b512e1f58b273e3f36113f72a121da66cf9a5b (patch) | |
tree | 14a2b3f6365b99b9b0fb28e7df31f3730e600453 /libass | |
parent | 25abe9651df43975b735430ef46145d1eb4ce047 (diff) |
Fix \be blur start position.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28837 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libass')
-rw-r--r-- | libass/ass_bitmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libass/ass_bitmap.c b/libass/ass_bitmap.c index dccdc542a6..61457f1fcc 100644 --- a/libass/ass_bitmap.c +++ b/libass/ass_bitmap.c @@ -264,7 +264,7 @@ static void be_blur(unsigned char *buf, int w, int h) { 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 @@ static void be_blur(unsigned char *buf, int w, int h) { } 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; |