unsigned pal[256];
} GDVContext;
-static int gdv_read_probe(AVProbeData *p)
+static int gdv_read_probe(const AVProbeData *p)
{
if (AV_RL32(p->buf) == 0x29111994)
return AVPROBE_SCORE_MAX;
vst->nb_frames = avio_rl16(pb);
fps = avio_rl16(pb);
+ if (!fps)
+ return AVERROR_INVALIDDATA;
+
snd_flags = avio_rl16(pb);
if (snd_flags & 1) {
ast = avformat_new_stream(ctx, 0);