public boolean isJpeg() {
    return mBytesParsed > 1 && mParserState != NOT_A_JPEG;
  }
Not every marker is followed by associated segment
imagepipeline/src/main/java/com/facebook/imagepipeline/decoder/ProgressiveJpegParser.java