use uint8_t for inv_palette[]

Change-Id: I5005ce68d89bfb657d46ad8acc4368c29fa0c4fd
This commit is contained in:
skal 2013-05-18 17:13:58 +02:00
parent afa3450c11
commit 0d25876bad

View File

@ -825,7 +825,7 @@ static void ApplyPalette(uint32_t* src, uint32_t* dst,
}
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) {
const int color = (palette[i] >> 8) & 0xff;
inv_palette[color] = i;