*/
#define GIF_MIN_DELAY 2
-static int gif_probe(AVProbeData *p)
+static int gif_probe(const AVProbeData *p)
{
/* check magick */
if (memcmp(p->buf, gif87a_sig, 6) && memcmp(p->buf, gif89a_sig, 6))
AVBPrint bp;
int block_size;
- av_bprint_init(&bp, 0, -1);
+ av_bprint_init(&bp, 0, AV_BPRINT_SIZE_UNLIMITED);
while ((block_size = avio_r8(pb)) != 0) {
avio_read_to_bprint(pb, &bp, block_size);
}
.category = AV_CLASS_CATEGORY_DEMUXER,
};
-AVInputFormat ff_gif_demuxer = {
+const AVInputFormat ff_gif_demuxer = {
.name = "gif",
.long_name = NULL_IF_CONFIG_SMALL("CompuServe Graphics Interchange Format (GIF)"),
.priv_data_size = sizeof(GIFDemuxContext),