浏览代码

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

Sean Barrett 8 年之前
父节点
当前提交
50ae79d811
共有 1 个文件被更改,包括 1 次插入0 次删除
  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;