private void skipImage() throws IOException {
    skipAndWriteBytes(8);

    int flags = readAndWriteNextByte();
    boolean hasLct = (flags & 0x80) != 0;
    if (hasLct) {
      int lctSize = 2 << (flags & 7);
      ignoreColorTable(lctSize);
    }
    skipAndWriteBytes(1);
    skipExtension();
  }
@param is InputStream to decode
@param os OutputStream to write fixed version of gif, if needed. (optional)
animated-gif-lite/src/main/java/com/facebook/animated/giflite/decoder/GifMetadataDecoder.java