瀏覽代碼

Merge branch 'unknown-marker' of https://github.com/jeremysawicki/stb into working

Sean Barrett 8 年之前
父節點
當前提交
6a3d4786c9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      stb_image.h

+ 1 - 1
stb_image.h

@@ -2844,7 +2844,7 @@ static int stbi__process_marker(stbi__jpeg *z, int m)
       stbi__skip(z->s, stbi__get16be(z->s)-2);
       return 1;
    }
-   return 0;
+   return stbi__err("unknown marker","Corrupt JPEG");
 }
 
 // after we see SOS