GIF loader: Enable showing animated images even if truncated

This commit is contained in:
Kim Woelders 2023-05-06 20:54:28 +02:00
parent d1d95fb2b1
commit c44f3a4124
1 changed files with 2 additions and 1 deletions

View File

@ -156,7 +156,7 @@ _load(ImlibImage * im, int load_data)
while (data)
{
if (DGifGetCodeNext(gif, &data) == GIF_ERROR)
goto quit;
goto done;
DL(" DGifGetCodeNext: size=%d data=%p\n", size, data);
}
continue;
@ -258,6 +258,7 @@ _load(ImlibImage * im, int load_data)
DL(" Unknown record type(%d)\n", rec);
}
}
done:
im->has_alpha = transp >= 0;
multiframe = false;