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 if (ret < 0 || !sb_size)
177 if (ret < 0 || !sb_size)
180 if (sb_size == 3 && data[0] == 1) {
199 int packed_fields, block_label, ct_size,
200 keyframe, frame_parsed = 0,
ret;
201 int64_t frame_start =
avio_tell(pb), frame_end;
202 unsigned char buf[6];
207 }
else if (
ret < 0) {
226 if (packed_fields & 0x80) {
227 ct_size = 3 * (1 << ((packed_fields & 0x07) + 1));
249 if (packed_fields & 0x80) {
250 ct_size = 3 * (1 << ((packed_fields & 0x07) + 1));
267 if (
avio_seek(pb, frame_start, SEEK_SET) != frame_start)
333 .priv_class = &demuxer_class,