Fixed a msvc build issue
BUG=aomedia:2620
Change-Id: Ie76cf86318e02c6a0cfc90b7cde11241300ec67b
diff --git a/av1/common/mv.h b/av1/common/mv.h
index c2235b5..28fb358 100644
--- a/av1/common/mv.h
+++ b/av1/common/mv.h
@@ -24,7 +24,7 @@
#define GET_MV_RAWPEL(x) (((x) + 3 + ((x) >= 0)) >> 3)
#define GET_MV_SUBPEL(x) ((x)*8)
-#define CHECK_MV_EQUAL(x, y) (((int_mv)(x)).as_int == ((int_mv)(y)).as_int)
+#define CHECK_MV_EQUAL(x, y) (((x).row == (y).row) && ((x).col == (y).col))
// The motion vector in units of full pixel
typedef struct fullpel_mv {
diff --git a/av1/encoder/mcomp.c b/av1/encoder/mcomp.c
index e7098e3..a783b95 100644
--- a/av1/encoder/mcomp.c
+++ b/av1/encoder/mcomp.c
@@ -2838,7 +2838,7 @@
for (iter = 0; iter < round; ++iter) {
MV iter_center_mv = *bestmv;
- if (CHECK_MV_EQUAL(x->fractional_best_mv[iter], iter_center_mv)) {
+ if (CHECK_MV_EQUAL(x->fractional_best_mv[iter].as_mv, iter_center_mv)) {
return INT_MAX;
}