Commit 9a80e7c4 authored by Jingning Han's avatar Jingning Han

Set mi pointer before setting the skip flag

This resolves a potential race issue in multi-threading test when
chroma-sub8x8 is enabled.

Change-Id: I443f4af10e55046b04d6d739f7594dd8bda5c830
parent f65b89ab
...@@ -272,10 +272,8 @@ static void set_offsets_without_segment_id(const AV1_COMP *const cpi, ...@@ -272,10 +272,8 @@ static void set_offsets_without_segment_id(const AV1_COMP *const cpi,
const int mi_width = mi_size_wide[bsize]; const int mi_width = mi_size_wide[bsize];
const int mi_height = mi_size_high[bsize]; const int mi_height = mi_size_high[bsize];
set_skip_context(xd, mi_row, mi_col);
set_mode_info_offsets(cpi, x, xd, mi_row, mi_col); set_mode_info_offsets(cpi, x, xd, mi_row, mi_col);
set_skip_context(xd, mi_row, mi_col);
#if CONFIG_VAR_TX #if CONFIG_VAR_TX
xd->above_txfm_context = cm->above_txfm_context + mi_col; xd->above_txfm_context = cm->above_txfm_context + mi_col;
xd->left_txfm_context = xd->left_txfm_context =
......
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