Commit 91eb798b authored by Sarah Parker's avatar Sarah Parker

Fix mismatch in global-motion experiment

This was introduced in 72e2e982

Change-Id: Ia4d0a0606a518964d5f6f257874f8f3d5b4d651b
parent 283ecdd2
......@@ -1695,15 +1695,16 @@ static void read_inter_block_mode_info(AV1Decoder *const pbi,
#else
zeromv[0].as_int = zeromv[1].as_int = 0;
#endif
for (ref = 0; ref < 2; ++ref) {
if (rf[ref] == NONE_FRAME) continue;
for (ref = 0; ref < 1 + is_compound; ++ref) {
lower_mv_precision(&ref_mvs[rf[ref]][0].as_mv, allow_hp);
lower_mv_precision(&ref_mvs[rf[ref]][1].as_mv, allow_hp);
if (ref_mvs[rf[ref]][0].as_int != zeromv[0].as_int ||
ref_mvs[rf[ref]][1].as_int != zeromv[1].as_int)
inter_mode_ctx[ref_frame] &= ~(1 << ALL_ZERO_FLAG_OFFSET);
}
if (ref_mvs[rf[0]][0].as_int != zeromv[0].as_int ||
ref_mvs[rf[0]][1].as_int != zeromv[0].as_int ||
(is_compound && (ref_mvs[rf[1]][0].as_int != zeromv[1].as_int ||
ref_mvs[rf[1]][1].as_int != zeromv[1].as_int)))
inter_mode_ctx[ref_frame] &= ~(1 << ALL_ZERO_FLAG_OFFSET);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment