From e04c7e11ec2fabf34aaf515103bc0b6086e1aabd Mon Sep 17 00:00:00 2001 From: volzhs Date: Thu, 22 Dec 2016 09:54:15 +0900 Subject: Update libwebp to 0.5.2 --- thirdparty/libwebp/dsp/dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thirdparty/libwebp/dsp/dec.c') diff --git a/thirdparty/libwebp/dsp/dec.c b/thirdparty/libwebp/dsp/dec.c index e92d693362..49bd16d976 100644 --- a/thirdparty/libwebp/dsp/dec.c +++ b/thirdparty/libwebp/dsp/dec.c @@ -239,7 +239,7 @@ VP8PredFunc VP8PredLuma16[NUM_B_DC_MODES]; //------------------------------------------------------------------------------ // 4x4 -#define AVG3(a, b, c) (((a) + 2 * (b) + (c) + 2) >> 2) +#define AVG3(a, b, c) ((uint8_t)(((a) + 2 * (b) + (c) + 2) >> 2)) #define AVG2(a, b) (((a) + (b) + 1) >> 1) static void VE4(uint8_t* dst) { // vertical -- cgit v1.2.3