diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-06-26 13:42:26 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-06-26 13:42:26 +0000 |
commit | dd7a68b6dad4bfa24c4c3954066cb8e1805c1c88 (patch) | |
tree | 6ac448cfff29a7ba4d1aef62fa3a6e30ea9e198d | |
parent | 3041a4a13df7fe8cf78e91d117a1ddbaa03d52f1 (diff) | |
download | ffmpeg-dd7a68b6dad4bfa24c4c3954066cb8e1805c1c88.tar.gz |
Remove start_time guessing code.
Originally committed as revision 13988 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/oggdec.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c index 7eb9847265..5459e1784b 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; } |