mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 04:18:26 +01:00
Merge "gif2webp: Be lenient about background color index."
This commit is contained in:
commit
6933d91057
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user