Code cleanup in av1_find_mv_refs() Change-Id: I39461584a5cbf50c93d26dd5ad9954dec0ec5474
diff --git a/av1/common/mvref_common.c b/av1/common/mvref_common.c index 242a9a9..8463fa4 100644 --- a/av1/common/mvref_common.c +++ b/av1/common/mvref_common.c
@@ -798,14 +798,14 @@ int_mv *global_mvs, int mi_row, int mi_col, int16_t *mode_context) { int_mv gm_mv[2]; - const BLOCK_SIZE bsize = mi->sb_type; if (ref_frame == INTRA_FRAME) { gm_mv[0].as_int = gm_mv[1].as_int = 0; - if (global_mvs != NULL && ref_frame < REF_FRAMES) { + if (global_mvs != NULL) { global_mvs[ref_frame].as_int = INVALID_MV; } } else { + const BLOCK_SIZE bsize = mi->sb_type; if (ref_frame < REF_FRAMES) { gm_mv[0] = gm_get_motion_vector( &cm->global_motion[ref_frame], cm->allow_high_precision_mv, bsize,