Commit 38381400 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/gdv: Check fps

Fixes: Division by 0
Fixes: ffmpeg_zero_division.bin
Found-by: 's avatarAnatoly Trosinenko <anatoly.trosinenko@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 03213706
......@@ -86,6 +86,9 @@ static int gdv_read_header(AVFormatContext *ctx)
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment