mirror of
https://github.com/nothings/stb
synced 2025-01-05 22:34:23 +03:00
Merge branch 'patch-1' of https://github.com/kinetiknz/stb
This commit is contained in:
commit
c03f4b3c2f
@ -3755,7 +3755,7 @@ static int stbi__compute_huffman_codes(stbi__zbuf *a)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int stbi__parse_uncomperssed_block(stbi__zbuf *a)
|
static int stbi__parse_uncompressed_block(stbi__zbuf *a)
|
||||||
{
|
{
|
||||||
stbi_uc header[4];
|
stbi_uc header[4];
|
||||||
int len,nlen,k;
|
int len,nlen,k;
|
||||||
@ -3821,7 +3821,7 @@ static int stbi__parse_zlib(stbi__zbuf *a, int parse_header)
|
|||||||
final = stbi__zreceive(a,1);
|
final = stbi__zreceive(a,1);
|
||||||
type = stbi__zreceive(a,2);
|
type = stbi__zreceive(a,2);
|
||||||
if (type == 0) {
|
if (type == 0) {
|
||||||
if (!stbi__parse_uncomperssed_block(a)) return 0;
|
if (!stbi__parse_uncompressed_block(a)) return 0;
|
||||||
} else if (type == 3) {
|
} else if (type == 3) {
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user