Index: libvo/vo_xv.c
===================================================================
--- libvo/vo_xv.c	(revision 34378)
+++ libvo/vo_xv.c	(working copy)
@@ -434,6 +434,13 @@
 
     dst = xvimage[current_buf]->data + xvimage[current_buf]->offsets[0] +
         xvimage[current_buf]->pitches[0] * y + x;
+
+    /* If image size has changed, use size last told to us */
+    if ((image_width != w) || (image_height != h)) {
+	w = image_width;
+	h = image_height;
+    }
+
     memcpy_pic(dst, image[0], w, h, xvimage[current_buf]->pitches[0],
                stride[0]);
 
