mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-26 21:36:26 +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)
|
||||
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)
|
||||
goto end;
|
||||
|
||||
if (zstatus != Z_OK && zstatus != Z_BUF_ERROR)
|
||||
goto error;
|
||||
switch (zstatus)
|
||||
{
|
||||
case 1:
|
||||
goto end;
|
||||
case -1:
|
||||
goto error;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user