NEW_MULTISYMBOL: adapt remaining bits in the magnitude.
Reduce the number of contexts from 10 to 6.
BUG=aomedia:830
Change-Id: If0ec302816975293b7dbd164c867feb66fa76847
diff --git a/av1/decoder/decodemv.c b/av1/decoder/decodemv.c
index 2a27928..4591cc9 100644
--- a/av1/decoder/decodemv.c
+++ b/av1/decoder/decodemv.c
@@ -1274,9 +1274,13 @@
} else {
int i;
const int n = mv_class + CLASS0_BITS - 1; // number of bits
-
d = 0;
+#if CONFIG_NEW_MULTISYMBOL
+ for (i = 0; i < n; ++i)
+ d |= aom_read_symbol(r, mvcomp->bits_cdf[(i + 1) / 2], 2, ACCT_STR) << i;
+#else
for (i = 0; i < n; ++i) d |= aom_read(r, mvcomp->bits[i], ACCT_STR) << i;
+#endif
mag = CLASS0_SIZE << (mv_class + 2);
}