Aside from the Start-Of-Image and End-Of-Image markers, must every marker in a jpeg file have 2 bytes after it specifying the length of the segment?

Or are there other stand alone markers? I want to parse jpeg data in a program, but don't need to encode or render any of it so I thought using a library was a bit of overkill.

Thanks anyone.