public int getNextDelay() {
        if (header.frameCount <= 0 || framePointer < 0) {
            return -1;
        }

        return (int) (getDelay(framePointer) * delayRatio);
    }
Gets display duration for the upcoming frame in ms.
core/src/main/java/com/bumptech/glide/gifdecoder/GifDecoder.java