Assign offsets correctly to compute warped motion
Offsets for the least-squares for affine motion computation
are now set at the top left corner of the current block.
Improves stability and performance a little.
Change-Id: I68ca7e74c6102502daa8ca3373af2b2dd59400c3
diff --git a/av1/encoder/rdopt.c b/av1/encoder/rdopt.c
index 210d72f..adcfc52 100644
--- a/av1/encoder/rdopt.c
+++ b/av1/encoder/rdopt.c
@@ -8771,7 +8771,7 @@
#endif // CONFIG_DUAL_FILTER
if (find_projection(mbmi->num_proj_ref[0], pts, pts_inref,
- &mbmi->wm_params[0]) == 0) {
+ &mbmi->wm_params[0], mi_row, mi_col) == 0) {
int plane;
#if CONFIG_AOM_HIGHBITDEPTH
int use_hbd = xd->cur_buf->flags & YV12_FLAG_HIGHBITDEPTH;