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-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8b808d50e2f4be57c3a245afea462540dab1484e;p=mesa.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 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];