Skip to content
Myr

stb_image: JPEG: Provide failure reason for unknown marker

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jeremy Sawicki · committed by Jeremy Sawicki · parent 59a5a15 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:stb_image.h+1 added-1 removed
2915 unmodified lines
2916 if ((m >= 0xE0 && m <= 0xEF) || m == 0xFE) {2917 stbi__skip(z->s, stbi__get16be(z->s)-2);2918 return 1;2919 }2920 return 0;2920 return stbi__err("unknown marker","Corrupt JPEG");2921}29222923// after we see SOS2924static int stbi__process_scan_header(stbi__jpeg *z)
4178 unmodified lines