Lf=get16(s);if(Lf<11)returnstbi__err("bad SOF len","Corrupt JPEG");// JPEG
p=get8(s);if(p!=8)returnstbi__err("only 8-bit","JPEG format not supported: 8-bit only");// JPEG baseline
s->img_y=get16(s);if(s->img_y==0)returnstbi__err("no header height","JPEG format not supported: delayed height");// Legal, but we don't handle it--but neither does IJG
p=stbi__get8(s);if(p!=8)returnstbi__err("only 8-bit","JPEG format not supported: 8-bit only");// JPEG baseline
s->img_y=stbi__get16be(s);if(s->img_y==0)returnstbi__err("no header height","JPEG format not supported: delayed height");// Legal, but we don't handle it--but neither does IJG