changeset 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 13a2a1a475d5
children 940946a4569b
files oggdec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);