54 #define GIF_DEFAULT_DELAY 10
58 #define GIF_MIN_DELAY 2
88 if (width == 0 || height == 0)
112 int sb_size, ret = 0;
114 while (0x00 != (sb_size =
avio_r8(pb))) {
126 int sb_size, ext_label =
avio_r8(pb);
130 if ((sb_size =
avio_r8(pb)) < 4) {
145 if ((ret =
avio_skip(pb, sb_size - 3)) < 0 )
159 int packed_fields, block_label, ct_size,
160 keyframe, frame_parsed = 0, ret;
161 int64_t frame_start =
avio_tell(pb), frame_end;
162 unsigned char buf[6];
164 if ((ret =
avio_read(pb, buf, 6)) == 6) {
167 }
else if (ret < 0) {
185 if (packed_fields & 0x80) {
186 ct_size = 3 * (1 << ((packed_fields & 0x07) + 1));
208 if (packed_fields & 0x80) {
209 ct_size = 3 * (1 << ((packed_fields & 0x07) + 1));
226 if (
avio_seek(pb, frame_start, SEEK_SET) != frame_start)
251 if (ret >= 0 && !frame_parsed) {
281 .priv_class = &demuxer_class,