changeset 3510:ac8b6b83e61e libavformat

Remove start_time guessing code.
author michael
date Thu, 26 Jun 2008 13:42:26 +0000
parents 0c989007b4f0
children 34a5e6f576fd
files oggdec.c
diffstat 1 files changed, 0 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/oggdec.c	Thu Jun 26 11:28:24 2008 +0000
+++ b/oggdec.c	Thu Jun 26 13:42:26 2008 +0000
@@ -468,16 +468,6 @@
 
     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;
 }