1
0
mirror of https://github.com/libretro/RetroArch synced 2025-04-02 07:20:34 +00:00

(RPNG) Dehardcode magic number in adam7_iterate

This commit is contained in:
twinaphex 2015-03-14 00:04:31 +01:00
parent 68ef4e7b72
commit 0d59d2534f

@ -460,7 +460,7 @@ static int png_reverse_filter_adam7_iterate(uint32_t **data_,
uint32_t *data = *data_; uint32_t *data = *data_;
if (!to_next) if (!to_next)
return 1; return PNG_PROCESS_END;
ret = png_reverse_filter_init(ihdr, pngp); ret = png_reverse_filter_init(ihdr, pngp);
@ -538,8 +538,7 @@ static bool png_reverse_filter_loop(struct rpng_t *rpng,
ihdr = &rpng->ihdr; ihdr = &rpng->ihdr;
pngp = &rpng->process; pngp = &rpng->process;
if (ihdr->interlace == 1)
if (rpng->ihdr.interlace == 1)
{ {
do do
{ {