private void readGraphicsControlExtension(int[] control) throws IOException {
    skipAndWriteBytes(1);
    int flags = readAndWriteNextByte();
    control[CONTROL_INDEX_DISPOSE] = (flags & 0x1c) >> 2; // dispose
    control[CONTROL_INDEX_DELAY] = readTwoByteInt() * 10; // delay
    if (control[CONTROL_INDEX_DELAY] == 0) {
      control[CONTROL_INDEX_DELAY] = DEFAULT_FRAME_DURATION_MS;
      initFixedOutputStream();
    }
    writeTwoByteInt(control[CONTROL_INDEX_DELAY] / 10);
    skipAndWriteBytes(2);
  }
@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