Revert "loader_gif(): Abort gif parsing if DGifGetLine() fails"

This reverts commit 2c6a3af9b6.

The fix breaks loading of certain images that at least apparently were
loaded just fine before.
This commit is contained in:
Kim Woelders 2014-12-16 19:39:03 +01:00
parent 55ddd412c3
commit 534f6c42a3
1 changed files with 2 additions and 8 deletions

View File

@ -85,10 +85,7 @@ load(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity,
{
for (j = intoffset[i]; j < h; j += intjump[i])
{
if (DGifGetLine(gif, rows[i], w) == GIF_ERROR)
{
break;
}
DGifGetLine(gif, rows[j], w);
}
}
}
@ -96,10 +93,7 @@ load(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity,
{
for (i = 0; i < h; i++)
{
if (DGifGetLine(gif, rows[i], w) == GIF_ERROR)
{
break;
}
DGifGetLine(gif, rows[i], w);
}
}
done = 1;