projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20be72c
)
check for sane values in ogg_get_length(), fix lol-ffplay.ogm fuzz test
author
Måns Rullgård
<mans@mansr.com>
Mon, 15 Jan 2007 22:45:50 +0000
(22:45 +0000)
committer
Måns Rullgård
<mans@mansr.com>
Mon, 15 Jan 2007 22:45:50 +0000
(22:45 +0000)
Originally committed as revision 7536 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/ogg2.c
patch
|
blob
|
history
diff --git
a/libavformat/ogg2.c
b/libavformat/ogg2.c
index
d630d4a
..
64e7733
100644
(file)
--- a/
libavformat/ogg2.c
+++ b/
libavformat/ogg2.c
@@
-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;
}