From ea9cf097c94195732e3d1702ab109c35670ae4b6 Mon Sep 17 00:00:00 2001 From: Jingning Han Date: Fri, 28 Oct 2016 14:19:12 -0700 Subject: [PATCH] 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 --- av1/common/mvref_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;