Browse Source

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

Sean Barrett 8 years ago
parent
commit
50ae79d811
1 changed files with 1 additions and 0 deletions
  1. 1 0
      stb_image.h

+ 1 - 0
stb_image.h

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