Commit 63794acc authored by mru's avatar mru

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7536 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 06b9d021
...@@ -484,7 +484,8 @@ ogg_get_length (AVFormatContext * s) ...@@ -484,7 +484,8 @@ ogg_get_length (AVFormatContext * s)
url_fseek (&s->pb, end, SEEK_SET); url_fseek (&s->pb, end, SEEK_SET);
while (!ogg_read_page (s, &i)){ 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; 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