jpeg2000: Check that there is a SOT before SOD