mirror of
https://github.com/nothings/stb
synced 2024-12-16 04:42:42 +03:00
Merge branch 'junk-before-marker' of https://github.com/jeremysawicki/stb into working
This commit is contained in:
commit
15c7e06dc8
@ -3045,8 +3045,6 @@ static int stbi__decode_jpeg_image(stbi__jpeg *j)
|
|||||||
if (x == 255) {
|
if (x == 255) {
|
||||||
j->marker = stbi__get8(j->s);
|
j->marker = stbi__get8(j->s);
|
||||||
break;
|
break;
|
||||||
} else if (x != 0) {
|
|
||||||
return stbi__err("junk before marker", "Corrupt JPEG");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// if we reach eof without hitting a marker, stbi__get_marker() below will fail and we'll eventually return 0
|
// if we reach eof without hitting a marker, stbi__get_marker() below will fail and we'll eventually return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user