From d49345533f2dff7ba58e5e5015baadd0ff7167f5 Mon Sep 17 00:00:00 2001 From: Urvang Joshi Date: Wed, 11 Dec 2013 08:46:38 -0800 Subject: [PATCH] gif2webp: Backward compatibility for giflib version <= 4.1.3 Fixes https://code.google.com/p/webp/issues/detail?id=172 We use 'int' instead of 'GifWord', which was introduced in version 4.1.4. Tested OK on 4.1.3 (http://sourceforge.net/projects/giflib/files/giflib-4.x/giflib%204.1.3/) and 5.0.4 Change-Id: I77628b0f9175a91eb3a22e64fc55dd00633add1f --- examples/gif2webp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/gif2webp.c b/examples/gif2webp.c index aa1cd584..6e8d79ee 100644 --- a/examples/gif2webp.c +++ b/examples/gif2webp.c @@ -154,7 +154,7 @@ static int ReadFrame(GifFileType* const gif, WebPFrameRect* const gif_rect, } static int GetBackgroundColor(const ColorMapObject* const color_map, - GifWord bgcolor_idx, uint32_t* const bgcolor) { + int bgcolor_idx, uint32_t* const bgcolor) { if (transparent_index != -1 && bgcolor_idx == transparent_index) { *bgcolor = WEBP_UTIL_TRANSPARENT_COLOR; // Special case. return 1;