private Bitmap decodeFirstFrame(GifDecoder decoder, GifHeader header, byte[] data) {
        decoder.setData(header, data);
        decoder.advance();
        return decoder.getNextFrame();
    }
An {@link ResourceDecoder} that decodes
{@link GifDrawable} from {@link InputStream} data.
core/src/main/java/com/bumptech/glide/load/resource/gif/GifResourceDecoder.java