stbi_gif_header
if (!stbi_gif_header(s, g, comp, 1)) goto fail;
if (!stbi_gif_header(s, g, comp,0)) return 0; // failure_reason set by stbi_gif_header