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

michael subversion
Thu Jun 26 15:42:26 CEST 2008


Author: michael
Date: Thu Jun 26 15:42:26 2008
New Revision: 13988

Log:
Remove start_time guessing code.


Modified:
   trunk/libavformat/oggdec.c

Modified: trunk/libavformat/oggdec.c
==============================================================================
--- trunk/libavformat/oggdec.c	(original)
+++ trunk/libavformat/oggdec.c	Thu Jun 26 15:42:26 2008
@@ -468,16 +468,6 @@ ogg_get_length (AVFormatContext * s)
 
     ogg->size = size;
     ogg_restore (s, 0);
-    ogg_save (s);
-    while (!ogg_read_page (s, &i)) {
-        if (i == idx && ogg->streams[i].granule != -1 && ogg->streams[i].granule != 0)
-            break;
-    }
-    if (i == idx) {
-        s->streams[idx]->start_time = ogg_gptopts (s, idx, ogg->streams[idx].granule);
-        s->streams[idx]->duration -= s->streams[idx]->start_time;
-    }
-    ogg_restore (s, 0);
 
     return 0;
 }




More information about the ffmpeg-cvslog mailing list