private void skip() {
        int blockSize;
        do {
            blockSize = read();
            rawData.position(rawData.position() + blockSize);
        } while (blockSize > 0);
    }
Skips variable length blocks up to and including next zero length block.
core/src/main/java/com/bumptech/glide/gifdecoder/GifHeaderParser.java