From: Tom L. <tg...@ss...> - 2016-09-20 03:30:20
|
Dinesh Iyer <dsi...@gm...> writes: >> I am using libjpeg 6b in my application and I am getting an error when I >> am attempting to read a JPEG file that has the byte sequence FF 21 as part >> of the COM marker. I get the error: >> "Unsupported marker type 0x21" 0x21 isn't a valid JPEG marker code. >> only when I use my own data source manager instead of jpg_stdio_src. That strongly suggests that your data source manager code is losing sync with the input, ie, eating more or fewer bytes than it should. Impossible to diagnose more specifically with this amount of info; but if you think that FF 21 is part of some COM marker and not part of the main data stream, then I'd say you broke consumption of the COM marker. regards, tom lane |