diff oggdec.c @ 4876:3a1ffb822e81 libavformat

Ensure that there's pages to read for duration calculation in the ogg demuxer
author conrad
date Wed, 15 Apr 2009 06:41:08 +0000
parents 187c981dfcb0
children 3aabdadf9d5f
line wrap: on
line diff
--- 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);