Commit cdf8a14e authored by Yaowu Xu's avatar Yaowu Xu

Move asserts into correct scope

The macro used in assert is defined under CONFIG_VAR_TX. This fixes a
build issuse when --enable-var-tx and --enable-rd-debug are both on.

Change-Id: I497fe4a8b1fa6c7b05ac2b41c97522f7bdedc0ce
parent 44701f2c
......@@ -46,10 +46,9 @@ static INLINE void av1_update_txb_coeff_cost(RD_STATS *rd_stats, int plane,
rd_stats->txb_coeff_cost_map[plane][blk_row][blk_col] = txb_coeff_cost;
}
#endif
assert(blk_row < TXB_COEFF_COST_MAP_SIZE);
assert(blk_col < TXB_COEFF_COST_MAP_SIZE);
#endif
}
#endif
......
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