Skip to main content
6 events
when toggle format what by license comment
Dec 6, 2016 at 20:00 comment added hotwebmatter To streamline the code, don't try to check whether the start of a buffer definitely is a JPEG. Just test to see if it definitely is not a JPEG. If it is not a JPG, just skip it and move on to the next buffer. If it doesn't fail any of your tests, then it might be a JPEG, so start processing that buffer as if it is a JPG, and keep going until you get to another buffer that doesn't fail any of your tests and might be another JPG.
Dec 6, 2016 at 19:06 vote accept olafironfoot
Dec 6, 2016 at 18:26 history edited olafironfoot CC BY-SA 3.0
Added version 2 and included Matt Obert's suggesiton and need more help
Dec 6, 2016 at 1:29 answer added hotwebmatter timeline score: 3
Dec 5, 2016 at 19:55 answer added Blauelf timeline score: 2
Dec 5, 2016 at 19:27 history asked olafironfoot CC BY-SA 3.0