From: Yaowu Xu Date: Mon, 4 Oct 2010 17:58:42 +0000 (-0700) Subject: fixed a typo that mis-used Y plane stride for UV blocks. X-Git-Tag: v0.9.5~40^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=49fdb7c41ed9184d74c05264c8610a5223d07018;p=libvpx fixed a typo that mis-used Y plane stride for UV blocks. Raised by Lei Yang, the Y plane stride was used for UV blocks. This is clearly a typo. But as the comments in the code suggested that this port of code has not been used yet, so the typo should not have created any damage yet. Change-Id: Iea895edc17469a51c803a8cc6d0fce65a1a7fc2f --- diff --git a/vp8/common/reconinter.c b/vp8/common/reconinter.c index ffdc660c2..2a7f12908 100644 --- a/vp8/common/reconinter.c +++ b/vp8/common/reconinter.c @@ -669,11 +669,15 @@ void vp8_build_inter_predictors_mb_s(MACROBLOCKD *x) if (d0->bmi.mv.as_mv.row & 7 || d0->bmi.mv.as_mv.col & 7) { - x->subpixel_predict8x4(ptr, d0->pre_stride, d0->bmi.mv.as_mv.col & 7, d0->bmi.mv.as_mv.row & 7, dst_ptr, x->dst.y_stride); + x->subpixel_predict8x4(ptr, d0->pre_stride, + d0->bmi.mv.as_mv.col & 7, + d0->bmi.mv.as_mv.row & 7, + dst_ptr, x->dst.uv_stride); } else { - RECON_INVOKE(&x->rtcd->recon, copy8x4)(ptr, d0->pre_stride, dst_ptr, x->dst.y_stride); + RECON_INVOKE(&x->rtcd->recon, copy8x4)(ptr, + d0->pre_stride, dst_ptr, x->dst.uv_stride); } } else