mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 04:18:26 +01:00
gif2webp: Be lenient about background color index.
Change-Id: I4440cffff4e8cefb3b0327a9b4925e05a7bbfc50
This commit is contained in:
parent
ad2503203a
commit
fdeeb01dc6
@ -283,8 +283,8 @@ int main(int argc, const char *argv[]) {
|
|||||||
if (gif->SColorMap != NULL &&
|
if (gif->SColorMap != NULL &&
|
||||||
!GetColorFromIndex(gif->SColorMap, gif->SBackGroundColor,
|
!GetColorFromIndex(gif->SColorMap, gif->SBackGroundColor,
|
||||||
&anim.bgcolor)) {
|
&anim.bgcolor)) {
|
||||||
fprintf(stderr, "GIF decode error: invalid background color index.\n");
|
fprintf(stderr, "GIF decode warning: invalid background color index. "
|
||||||
goto End;
|
"Assuming white background.\n");
|
||||||
}
|
}
|
||||||
ClearPicture(&picture, anim.bgcolor);
|
ClearPicture(&picture, anim.bgcolor);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user