Change png_reverse_filter_regular_loop's return code

This commit is contained in:
twinaphex 2015-03-13 23:28:12 +01:00
parent 003fb2a7c8
commit d6c7ba448a

View File

@ -448,10 +448,7 @@ static int png_reverse_filter_regular_loop(uint32_t **data_, const struct png_ih
}while(ret == PNG_PROCESS_NEXT);
pngp->inflate_buf -= pngp->restore_buf_size;
if (ret == 1)
return PNG_PROCESS_END;
return PNG_PROCESS_ERROR;
return ret;
}