Commit eb8e455e authored by Hui Su's avatar Hui Su

Fix assertion fail in av1_left/above_block_mode()

BUG=aomedia:1221

Change-Id: I2893ab3c6f5a2403512890ec4ea929abedb14421
parent c6acc531
......@@ -18,13 +18,21 @@
PREDICTION_MODE av1_left_block_mode(const MODE_INFO *left_mi) {
if (!left_mi) return DC_PRED;
#if CONFIG_INTRABC
assert(!is_inter_block(&left_mi->mbmi) || is_intrabc_block(&left_mi->mbmi));
#else
assert(!is_inter_block(&left_mi->mbmi));
#endif // CONFIG_INTRABC
return left_mi->mbmi.mode;
}
PREDICTION_MODE av1_above_block_mode(const MODE_INFO *above_mi) {
if (!above_mi) return DC_PRED;
#if CONFIG_INTRABC
assert(!is_inter_block(&above_mi->mbmi) || is_intrabc_block(&above_mi->mbmi));
#else
assert(!is_inter_block(&above_mi->mbmi));
#endif // CONFIG_INTRABC
return above_mi->mbmi.mode;
}
......
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