# HG changeset patch # User mru # Date 1168901150 0 # Node ID 2400a22af9981cff92ed2c8a941018aa7e3a23e4 # Parent a472266b5d39684e9518ec20e5cb16a8db0df119 check for sane values in ogg_get_length(), fix lol-ffplay.ogm fuzz test diff -r a472266b5d39 -r 2400a22af998 ogg2.c --- a/ogg2.c Mon Jan 15 22:05:22 2007 +0000 +++ b/ogg2.c Mon Jan 15 22:45:50 2007 +0000 @@ -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; }