avcodec/jpeg2000dec: check len before parsing header