Guest User

Untitled

a guest
Oct 3rd, 2024
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. if (gif->loop >= 0) {
  2. avio_w8(pb, GIF_EXTENSION_INTRODUCER); /* GIF Extension code */
  3. avio_w8(pb, GIF_APP_EXT_LABEL); /* Application Extension Label */
  4. avio_w8(pb, 0x0b); /* Length of Application Block */
  5. avio_write(pb, "NETSCAPE2.0", sizeof("NETSCAPE2.0") - 1);
  6. avio_w8(pb, 0x03); /* Length of Data Sub-Block */
  7. avio_w8(pb, 0x01);
  8. avio_wl16(pb, (uint16_t)gif->loop);
  9. avio_w8(pb, 0x00); /* Data Sub-block Terminator */
  10. }
Advertisement
Add Comment
Please, Sign In to add comment