Commit 8feaaac8 authored by Jingning Han's avatar Jingning Han

Initialize both luma and chroma planes in palette encoding

This avoids the use of uninitialized value in palette encoding.


Change-Id: I1000b28d9acf25a70ef641d4494f0b116a4ca071
parent 7300db5f
......@@ -3676,6 +3676,7 @@ static int64_t rd_pick_intra_sby_mode(const AV1_COMP *const cpi, MACROBLOCK *x,
pmi->palette_size[0] = 0;
pmi->palette_size[1] = 0;
if (above_mi)
palette_y_mode_ctx +=
(above_mi->mbmi.palette_mode_info.palette_size[0] > 0);
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