intrabc: modify default ref dv
Make sure the ref dv is a valid dv.
Improves compression by about 0.3% on screen_content keyframes.
Change-Id: I3a20c1a04b0ebcad610276f21b410dcfc8ba4c4d
diff --git a/av1/encoder/rdopt.c b/av1/encoder/rdopt.c
index 144a9fc..a713bcf 100644
--- a/av1/encoder/rdopt.c
+++ b/av1/encoder/rdopt.c
@@ -8690,7 +8690,8 @@
#endif
int_mv dv_ref = nearestmv.as_int == 0 ? nearmv : nearestmv;
- if (dv_ref.as_int == 0) av1_find_ref_dv(&dv_ref, mi_row, mi_col);
+ if (dv_ref.as_int == 0)
+ av1_find_ref_dv(&dv_ref, tile, cm->mib_size, mi_row, mi_col);
// Ref DV should not have sub-pel.
assert((dv_ref.as_mv.col & 7) == 0);
assert((dv_ref.as_mv.row & 7) == 0);