summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2009-11-19 14:38:39 -0800
committerVinson Lee <vlee@vmware.com>2009-11-19 14:40:00 -0800
commit8b808d50e2f4be57c3a245afea462540dab1484e (patch)
tree031d6031f2251ce51bf5ccca54f2ea51aeb5df6d
parent4ab8dbe5935d5c946cbc9af6982461073a784d07 (diff)
st/xorg: Fix infinite loop in copy_packed_data.
-rw-r--r--src/gallium/state_trackers/xorg/xorg_xv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/xorg/xorg_xv.c b/src/gallium/state_trackers/xorg/xorg_xv.c
index 7cc532b1c81..a1e74fad598 100644
--- a/src/gallium/state_trackers/xorg/xorg_xv.c
+++ b/src/gallium/state_trackers/xorg/xorg_xv.c
@@ -256,7 +256,7 @@ copy_packed_data(ScrnInfoPtr pScrn,
switch (id) {
case FOURCC_YV12: {
for (i = 0; i < w; ++i) {
- for (j = 0; i < h; ++j) {
+ for (j = 0; j < h; ++j) {
/*XXX use src? */
y1 = buf[j*w + i];
u = buf[(j/2) * (w/2) + i/2 + y_array_size];