stb_image: JPEG: Provide failure reason for unknown marker

This commit is contained in:
Jeremy Sawicki 2017-03-03 01:11:34 -08:00
parent 59a5a155b4
commit f5f7dc02a1
1 changed files with 1 additions and 1 deletions

View File

@ -2917,7 +2917,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