diff --git a/stb_image.h b/stb_image.h index 3940f38db21bfedb4eaf843cb7b13172e9b33879..2ba2c2eff97584150a1f264590b7ad3d9b1ebc7f 100644 --- a/stb_image.h +++ b/stb_image.h @@ -3123,8 +3123,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