61 #define GIF_DEFAULT_DELAY 10
65 #define GIF_MIN_DELAY 2
83 for (i = 0; i < 6; i++) {
100 if ((ret =
resync(pb)) < 0)
107 if (width == 0 || height == 0)
131 int sb_size,
ret = 0;
133 while (0x00 != (sb_size =
avio_r8(pb))) {
145 int sb_size, ext_label =
avio_r8(pb);
149 if ((sb_size =
avio_r8(pb)) < 4) {
164 if ((ret =
avio_skip(pb, sb_size - 3)) < 0 )
171 ret =
avio_read(pb, netscape_ext,
sizeof(netscape_ext));
172 if (ret <
sizeof(netscape_ext))
189 int packed_fields, block_label, ct_size,
190 keyframe, frame_parsed = 0,
ret;
191 int64_t frame_start =
avio_tell(pb), frame_end;
192 unsigned char buf[6];
197 }
else if (
ret < 0) {
216 if (packed_fields & 0x80) {
217 ct_size = 3 * (1 << ((packed_fields & 0x07) + 1));
239 if (packed_fields & 0x80) {
240 ct_size = 3 * (1 << ((packed_fields & 0x07) + 1));
257 if (
avio_seek(pb, frame_start, SEEK_SET) != frame_start)
323 .priv_class = &demuxer_class,