Commit 1d46d903 authored by Wei-Ting Lin's avatar Wei-Ting Lin Committed by Wei-ting Lin

Fix token-encoding errors in NCOBMC

mi[0] is not set properly when encoding all mvs in a
super-block first. After this patch NCOBMC can function

Change-Id: I149a50184c4823c0d3b82b6b21c7608e639668e6
parent d43d6777
......@@ -2620,7 +2620,8 @@ static void write_tokens_b(AV1_COMP *cpi, const TileInfo *const tile,
int mi_col) {
AV1_COMMON *const cm = &cpi->common;
MACROBLOCKD *const xd = &cpi->td.mb.e_mbd;
MODE_INFO *const m = xd->mi[0];
const int mi_offset = mi_row * cm->mi_stride + mi_col;
MODE_INFO *const m = *(cm->mi_grid_visible + mi_offset);
MB_MODE_INFO *const mbmi = &m->mbmi;
int plane;
int bh, bw;
......@@ -2629,7 +2630,7 @@ static void write_tokens_b(AV1_COMP *cpi, const TileInfo *const tile,
xd->mi = cm->mi_grid_visible + (mi_row * cm->mi_stride + mi_col);
xd->mi = cm->mi_grid_visible + mi_offset;
assert(mbmi->sb_type <= cm->sb_size);
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