Fix png_reverse_filter

This commit is contained in:
twinaphex 2015-02-26 07:26:02 +01:00
parent 9eaf62f319
commit dda9d41d43

View File

@ -108,6 +108,8 @@ static bool png_reverse_filter(uint32_t *data, const struct png_ihdr *ihdr,
if (!pngp->prev_scanline || !pngp->decoded_scanline)
GOTO_END_ERROR();
pngp->h = 0;
for (; pngp->h < ihdr->height;
pngp->h++, inflate_buf += pngp->pitch, data += ihdr->width)
{