[Ffmpeg-cvslog] r7536 - trunk/libavformat/ogg2.c

mru subversion
Mon Jan 15 23:45:51 CET 2007


Author: mru
Date: Mon Jan 15 23:45:50 2007
New Revision: 7536

Modified:
   trunk/libavformat/ogg2.c

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


Modified: trunk/libavformat/ogg2.c
==============================================================================
--- trunk/libavformat/ogg2.c	(original)
+++ trunk/libavformat/ogg2.c	Mon Jan 15 23:45:50 2007
@@ -484,7 +484,8 @@
     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;
     }
 




More information about the ffmpeg-cvslog mailing list