소스 검색

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

Sean Barrett 8 년 전
부모
커밋
15c7e06dc8
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 2
      stb_image.h

+ 0 - 2
stb_image.h

@@ -3045,8 +3045,6 @@ static int stbi__decode_jpeg_image(stbi__jpeg *j)
                if (x == 255) {
                   j->marker = stbi__get8(j->s);
                   break;
-               } else if (x != 0) {
-                  return stbi__err("junk before marker", "Corrupt JPEG");
                }
             }
             // if we reach eof without hitting a marker, stbi__get_marker() below will fail and we'll eventually return 0