summaryrefslogtreecommitdiff
path: root/glamor/glamor_xv.c
diff options
context:
space:
mode:
Diffstat (limited to 'glamor/glamor_xv.c')
-rw-r--r--glamor/glamor_xv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glamor/glamor_xv.c b/glamor/glamor_xv.c
index 1c877da1c..83e24adb2 100644
--- a/glamor/glamor_xv.c
+++ b/glamor/glamor_xv.c
@@ -435,7 +435,7 @@ glamor_xv_put_image(glamor_port_private *port_priv,
}
top = (src_y) & ~1;
- nlines = (src_y + height) - top;
+ nlines = (src_y + src_h) - top;
switch (id) {
case FOURCC_YV12: