Merge branch 'fill-bytes' of https://github.com/jeremysawicki/stb into working

pull/415/merge
Sean Barrett 2017-03-03 08:36:03 -08:00
commit 50ae79d811
1 changed files with 1 additions and 0 deletions

View File

@ -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;