Commit e22f2aaf authored by Måns Rullgård's avatar Måns Rullgård
Browse files

check for sane values in ogg_get_length(), fix lol-ffplay.ogm fuzz test

Originally committed as revision 7536 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 20be72c8
......@@ -484,7 +484,8 @@ ogg_get_length (AVFormatContext * s)
url_fseek (&s->pb, end, SEEK_SET);
while (!ogg_read_page (s, &i)){
if (ogg->streams[i].granule != -1 && ogg->streams[i].granule != 0)
if (ogg->streams[i].granule != -1 && ogg->streams[i].granule != 0 &&
ogg->streams[i].codec)
idx = i;
}
......
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