--- vo_xv.c.~1.155.~ 2004-09-22 13:59:35.000000000 +0200 +++ vo_xv.c 2004-10-17 13:21:52.000000000 +0200 @@ -605,6 +605,9 @@ { uint8_t *dst; + if (w > image_width) w = image_width; + if (h > image_height) h = image_height; + dst = xvimage[current_buf]->data + xvimage[current_buf]->offsets[0] + xvimage[current_buf]->pitches[0] * y + x; memcpy_pic(dst, image[0], w, h, xvimage[current_buf]->pitches[0],