# HG changeset patch # User conrad # Date 1239777668 0 # Node ID 3a1ffb822e8151d756eef82fdba7d10954f91153 # Parent 13a2a1a475d5c0c1122e7fc8c86c36626cb304ad Ensure that there's pages to read for duration calculation in the ogg demuxer diff -r 13a2a1a475d5 -r 3a1ffb822e81 oggdec.c --- a/oggdec.c Tue Apr 14 15:01:46 2009 +0000 +++ b/oggdec.c Wed Apr 15 06:41:08 2009 +0000 @@ -450,7 +450,7 @@ size = url_fsize(s->pb); if(size < 0) return 0; - end = size > MAX_PAGE_SIZE? size - MAX_PAGE_SIZE: size; + end = size > MAX_PAGE_SIZE? size - MAX_PAGE_SIZE: 0; ogg_save (s); url_fseek (s->pb, end, SEEK_SET);