Commit be984ebb authored by Jonathan Matthews's avatar Jonathan Matthews

Palette Throughput - don't copy garbage

BUG=aomedia:697

Change-Id: Id7e971e515c9faa3df32e162befd57907278549d
parent 13648e75
......@@ -254,7 +254,7 @@ void av1_decode_palette_tokens(MACROBLOCKD *const xd, int plane,
}
// Copy last column to extra columns.
if (cols < plane_block_width) {
for (int i = 0; i < plane_block_height; ++i) {
for (int i = 0; i < rows; ++i) {
memset(color_map + i * plane_block_width + cols,
color_map[i * plane_block_width + cols - 1],
(plane_block_width - cols));
......
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