From: Jingning Han Date: Fri, 28 Oct 2016 21:19:12 +0000 (-0700) Subject: Fix the top-right reference block location X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ea9cf097c94195732e3d1702ab109c35670ae4b6;p=libvpx Fix the top-right reference block location This commit fixes the top-right reference block location for block sizes above 8x8. It improves the coding performance of ref-mv: lowres 0.08% midres 0.15% Thanks to jiafeng@ for finding this issue. Change-Id: I70750fc7b18bf0126d3e07abc1b63ca5a160193e --- diff --git a/av1/common/mvref_common.c b/av1/common/mvref_common.c index 2344bc105..5b0f21da2 100644 --- a/av1/common/mvref_common.c +++ b/av1/common/mvref_common.c @@ -394,8 +394,8 @@ static void setup_ref_mv_list(const AV1_COMMON *cm, const MACROBLOCKD *xd, // Check top-right boundary if (has_tr) - newmv_count += scan_blk_mbmi(cm, xd, mi_row, mi_col, block, rf, -1, 1, - ref_mv_stack, refmv_count); + newmv_count += scan_blk_mbmi(cm, xd, mi_row, mi_col, block, rf, -1, + xd->n8_w, ref_mv_stack, refmv_count); nearest_refmv_count = *refmv_count;