mirror of
https://github.com/nothings/stb
synced 2024-12-15 04:22:35 +03:00
Merge branch 'fill-bytes' of https://github.com/jeremysawicki/stb into working
This commit is contained in:
commit
50ae79d811
@ -1776,6 +1776,7 @@ static void stbi__grow_buffer_unsafe(stbi__jpeg *j)
|
||||
int b = j->nomore ? 0 : stbi__get8(j->s);
|
||||
if (b == 0xff) {
|
||||
int c = stbi__get8(j->s);
|
||||
while (c == 0xff) c = stbi__get8(j->s);
|
||||
if (c != 0) {
|
||||
j->marker = (unsigned char) c;
|
||||
j->nomore = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user