mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
use uint8_t for inv_palette[]
Change-Id: I5005ce68d89bfb657d46ad8acc4368c29fa0c4fd
This commit is contained in:
parent
afa3450c11
commit
0d25876bad
@ -825,7 +825,7 @@ static void ApplyPalette(uint32_t* src, uint32_t* dst,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (use_LUT) {
|
if (use_LUT) {
|
||||||
int inv_palette[MAX_PALETTE_SIZE] = { 0 };
|
uint8_t inv_palette[MAX_PALETTE_SIZE] = { 0 };
|
||||||
for (i = 0; i < palette_size; ++i) {
|
for (i = 0; i < palette_size; ++i) {
|
||||||
const int color = (palette[i] >> 8) & 0xff;
|
const int color = (palette[i] >> 8) & 0xff;
|
||||||
inv_palette[color] = i;
|
inv_palette[color] = i;
|
||||||
|
Loading…
Reference in New Issue
Block a user