Commit f1589be9 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/oggdec: Check for EOF after page header

Fixes: Infinite loop
Fixes: Ticket8594
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent be3c29e3
......@@ -389,6 +389,9 @@ static int ogg_read_page(AVFormatContext *s, int *sid)
avio_skip(bc, 8); /* seq, crc */
nsegs = avio_r8(bc);
if (avio_feof(bc))
return AVERROR_EOF;
idx = ogg_find_stream(ogg, serial);
if (idx < 0) {
if (data_packets_seen(ogg))
......
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