From fdeeb01dc6f49a0773f75b9904b46928969ee5bd Mon Sep 17 00:00:00 2001 From: Urvang Joshi <urvang@google.com> Date: Tue, 5 Mar 2013 13:41:55 -0800 Subject: [PATCH] gif2webp: Be lenient about background color index. Change-Id: I4440cffff4e8cefb3b0327a9b4925e05a7bbfc50 --- examples/gif2webp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/gif2webp.c b/examples/gif2webp.c index cb051058..6bb954db 100644 --- a/examples/gif2webp.c +++ b/examples/gif2webp.c @@ -283,8 +283,8 @@ int main(int argc, const char *argv[]) { if (gif->SColorMap != NULL && !GetColorFromIndex(gif->SColorMap, gif->SBackGroundColor, &anim.bgcolor)) { - fprintf(stderr, "GIF decode error: invalid background color index.\n"); - goto End; + fprintf(stderr, "GIF decode warning: invalid background color index. " + "Assuming white background.\n"); } ClearPicture(&picture, anim.bgcolor);