mirror of
https://github.com/libretro/RetroArch
synced 2025-04-02 16:20:39 +00:00
(PNG) Cleanup
This commit is contained in:
parent
bb02411544
commit
26b0b397c3
@ -220,6 +220,7 @@ begin:
|
|||||||
goto begin;
|
goto begin;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
png_reverse_filter_deinit(pngp);
|
png_reverse_filter_deinit(pngp);
|
||||||
return -1;
|
return -1;
|
||||||
@ -239,8 +240,12 @@ static bool png_reverse_filter(uint32_t *data, const struct png_ihdr *ihdr,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
while((ret = png_reverse_filter_wrapper(data,
|
do{
|
||||||
ihdr, inflate_buf, pngp, palette)) == 0);
|
ret = png_reverse_filter_wrapper(data,
|
||||||
|
ihdr, inflate_buf, pngp, palette);
|
||||||
|
if (ret == 1 || ret == -1)
|
||||||
|
break;
|
||||||
|
}while(1);
|
||||||
|
|
||||||
if (ret == 1)
|
if (ret == 1)
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user