diff options
author | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-07-27 19:39:23 +0000 |
---|---|---|
committer | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-07-27 19:39:23 +0000 |
commit | 9cd56d5e40ae30ce886c3ee2838aa05b0110821f (patch) | |
tree | 0ab8901e91c404d7551ff7ee0c3219ab77ec58f1 /libass | |
parent | 4dc235eb7cf07d124229e6d6f55ba5910353f986 (diff) |
Fix stupid, off-by-one, mistakes in assert() expressions.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29448 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libass')
-rw-r--r-- | libass/ass_render.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c index e4c06f7885..3048a2a233 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -319,8 +319,8 @@ static ass_image_t* my_draw_bitmap(unsigned char* bitmap, int bitmap_w, int bitm assert(dst_x >= 0); assert(dst_y >= 0); - assert(dst_x + bitmap_w < frame_context.width); - assert(dst_y + bitmap_h < frame_context.height); + assert(dst_x + bitmap_w <= frame_context.width); + assert(dst_y + bitmap_h <= frame_context.height); img->w = bitmap_w; img->h = bitmap_h; |