Make global_motion work with ext_inter
Change-Id: I2a490e144099d7692296992528192c1f11d2c06f
diff --git a/av1/decoder/decodemv.c b/av1/decoder/decodemv.c
index 6751434..15cdb58 100644
--- a/av1/decoder/decodemv.c
+++ b/av1/decoder/decodemv.c
@@ -1458,8 +1458,17 @@
}
case ZERO_ZEROMV: {
assert(is_compound);
+#if CONFIG_GLOBAL_MOTION
+ mv[0].as_int = gm_get_motion_vector(&cm->global_motion[ref_frame[0]],
+ cm->allow_high_precision_mv)
+ .as_int;
+ mv[1].as_int = gm_get_motion_vector(&cm->global_motion[ref_frame[1]],
+ cm->allow_high_precision_mv)
+ .as_int;
+#else
mv[0].as_int = 0;
mv[1].as_int = 0;
+#endif // CONFIG_GLOBAL_MOTION
break;
}
#endif // CONFIG_EXT_INTER