Commit e3afdd89 authored by David Barker's avatar David Barker Committed by Debargha Mukherjee

Fix bug when cb4x4 is disabled

When cb4x4 is disabled and global-motion is enabled, the function
av1_append_sub8x8_mvs_for_idx accidentally fetched
cm->global_motion[ref] instead of cm->global_motion[rf[0]],
ie. it used the reference *index* instead of the reference *frame*.

Change-Id: Ieebf60f6b7c0a1cbbc083a70d4451ad799e27fe3
parent 161e3392
......@@ -929,8 +929,8 @@ void av1_append_sub8x8_mvs_for_idx(const AV1_COMMON *cm, MACROBLOCKD *xd,
assert(MAX_MV_REF_CANDIDATES == 2);
#if CONFIG_GLOBAL_MOTION
zeromv.as_int =
gm_get_motion_vector(&cm->global_motion[ref], cm->allow_high_precision_mv,
zeromv.as_int = gm_get_motion_vector(&cm->global_motion[rf[0]],
cm->allow_high_precision_mv,
mi->mbmi.sb_type, mi_col, mi_row, block)
.as_int;
#else
......
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