Commit 4330e1bd authored by Jingning Han's avatar Jingning Han

Fix out-of-bound access in filter intra

BUG=aomedia:427

Change-Id: Ic7b0f6850d7685f4aff0e51154f8777c9ef72c17
parent b1cc1f9d
......@@ -9401,7 +9401,8 @@ static void pick_filter_intra_interframe(
rate2 = rate_y + intra_mode_cost[mbmi->mode] + rate_uv +
cpi->intra_uv_mode_cost[mbmi->mode][mbmi->uv_mode];
#if CONFIG_PALETTE
if (cpi->common.allow_screen_content_tools && mbmi->mode == DC_PRED)
if (cpi->common.allow_screen_content_tools && mbmi->mode == DC_PRED &&
bsize >= BLOCK_8X8)
rate2 += av1_cost_bit(
av1_default_palette_y_mode_prob[bsize - BLOCK_8X8][palette_ctx], 0);
#endif // CONFIG_PALETTE
......
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