mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
(RPNG) Use zib_inflate_data_to_file_iterate
This commit is contained in:
parent
7ac7b15718
commit
0c99c8c68e
@ -588,13 +588,17 @@ int rpng_load_image_argb_process_inflate_init(struct rpng_t *rpng,
|
|||||||
if (!to_continue)
|
if (!to_continue)
|
||||||
goto end;
|
goto end;
|
||||||
|
|
||||||
zstatus = inflate(&rpng->process.stream, Z_NO_FLUSH);
|
zstatus = zlib_inflate_data_to_file_iterate(&rpng->process.stream);
|
||||||
|
|
||||||
if (zstatus == Z_STREAM_END)
|
switch (zstatus)
|
||||||
goto end;
|
{
|
||||||
|
case 1:
|
||||||
if (zstatus != Z_OK && zstatus != Z_BUF_ERROR)
|
goto end;
|
||||||
goto error;
|
case -1:
|
||||||
|
goto error;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user