[FFmpeg-cvslog] r18523 - trunk/libavformat/oggdec.c

conrad subversion
Wed Apr 15 08:41:08 CEST 2009


Author: conrad
Date: Wed Apr 15 08:41:08 2009
New Revision: 18523

Log:
OGG demuxer: ensure that there's pages to read for duration calculation in

Modified:
   trunk/libavformat/oggdec.c

Modified: trunk/libavformat/oggdec.c
==============================================================================
--- trunk/libavformat/oggdec.c	Wed Apr 15 08:23:40 2009	(r18522)
+++ trunk/libavformat/oggdec.c	Wed Apr 15 08:41:08 2009	(r18523)
@@ -450,7 +450,7 @@ ogg_get_length (AVFormatContext * s)
     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);



More information about the ffmpeg-cvslog mailing list