gif2webp: Be lenient about background color index.

Change-Id: I4440cffff4e8cefb3b0327a9b4925e05a7bbfc50
This commit is contained in:
Urvang Joshi 2013-03-05 13:41:55 -08:00
parent ad2503203a
commit fdeeb01dc6

View File

@ -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);