Backport of !4039 (merged) "jpegparse: reset parse state when the SOI is not the first marker.".
Commits: