From: Vinson Lee Date: Thu, 19 Nov 2009 22:38:39 +0000 (-0800) Subject: st/xorg: Fix infinite loop in copy_packed_data. X-Git-Tag: 062012170305~15803^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8b808d50e2f4be57c3a245afea462540dab1484e;p=profile%2Fivi%2Fmesa.git st/xorg: Fix infinite loop in copy_packed_data. --- diff --git a/src/gallium/state_trackers/xorg/xorg_xv.c b/src/gallium/state_trackers/xorg/xorg_xv.c index 7cc532b..a1e74fa 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];