54 #define GIF_DEFAULT_DELAY 10
58 #define GIF_MIN_DELAY 2
76 for (i = 0; i < 6; i++) {
93 if ((ret =
resync(pb)) < 0)
100 if (width == 0 || height == 0)
124 int sb_size, ret = 0;
126 while (0x00 != (sb_size =
avio_r8(pb))) {
138 int sb_size, ext_label =
avio_r8(pb);
142 if ((sb_size =
avio_r8(pb)) < 4) {
157 if ((ret =
avio_skip(pb, sb_size - 3)) < 0 )
171 int packed_fields, block_label, ct_size,
172 keyframe, frame_parsed = 0, ret;
173 int64_t frame_start =
avio_tell(pb), frame_end;
174 unsigned char buf[6];
176 if ((ret =
avio_read(pb, buf, 6)) == 6) {
179 }
else if (ret < 0) {
198 if (packed_fields & 0x80) {
199 ct_size = 3 * (1 << ((packed_fields & 0x07) + 1));
221 if (packed_fields & 0x80) {
222 ct_size = 3 * (1 << ((packed_fields & 0x07) + 1));
239 if (
avio_seek(pb, frame_start, SEEK_SET) != frame_start)
263 if ((ret =
resync(pb)) < 0)
271 if (ret >= 0 && !frame_parsed) {
301 .priv_class = &demuxer_class,