0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

Fix stupid, off-by-one, mistakes in assert() expressions.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29448 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
eugeni 2009-07-27 19:39:23 +00:00
parent 4dc235eb7c
commit 9cd56d5e40
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -221,7 +221,7 @@ static void copy_from_image(struct vf_instance_s* vf, int first_row, int last_ro
assert(first_row >= 0);
assert(first_row <= last_row);
assert(last_row < vf->priv->outh);
assert(last_row <= vf->priv->outh);
for (pl = 1; pl < 3; ++pl) {
int dst_stride = vf->priv->outw;