avformat/oggdec: Check for EOF after page header
Fixes: Infinite loop
Fixes: Ticket8594
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit f1589be9fd)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
6e768588c3
commit
94af3d9ca6
1 changed files with 3 additions and 0 deletions
|
|
@ -370,6 +370,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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue