From 0d25876bad862984336f6d2071c5421627680e6c Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 18 May 2013 17:13:58 +0200 Subject: [PATCH] use uint8_t for inv_palette[] Change-Id: I5005ce68d89bfb657d46ad8acc4368c29fa0c4fd --- src/enc/vp8l.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/enc/vp8l.c b/src/enc/vp8l.c index 6422c544..d99dd868 100644 --- a/src/enc/vp8l.c +++ b/src/enc/vp8l.c @@ -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;