Use 8x8 block resolution to store motion vectors
Store the reference frame motion vectors in 8x8 block resolution.
Change-Id: I5afde20c40f09b44e943034232359bdaac4a2b64
diff --git a/av1/decoder/decodemv.c b/av1/decoder/decodemv.c
index 0a599c7..4fea6d0 100644
--- a/av1/decoder/decodemv.c
+++ b/av1/decoder/decodemv.c
@@ -2929,7 +2929,10 @@
int y_mis) {
AV1_COMMON *const cm = &pbi->common;
MODE_INFO *const mi = xd->mi[0];
- MV_REF *frame_mvs = cm->cur_frame->mvs + mi_row * cm->mi_cols + mi_col;
+ MV_REF *frame_mvs =
+ cm->cur_frame->mvs + (mi_row & 0xfffe) * cm->mi_cols + (mi_col & 0xfffe);
+ x_mis = AOMMAX(x_mis, 2);
+ y_mis = AOMMAX(y_mis, 2);
int w, h;
#if CONFIG_INTRABC