[SCM] libav/experimental: Remove start_time guessing code.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:24:24 UTC 2013


The following commit has been merged in the experimental branch:
commit dd7a68b6dad4bfa24c4c3954066cb8e1805c1c88
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Thu Jun 26 13:42:26 2008 +0000

    Remove start_time guessing code.
    
    Originally committed as revision 13988 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index 7eb9847..5459e17 100644
--- a/libavformat/oggdec.c
+++ b/libavformat/oggdec.c
@@ -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;
 }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list