Remove start_time guessing code.

Originally committed as revision 13988 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2008-06-26 13:42:26 +00:00
parent 3041a4a13d
commit dd7a68b6da
1 changed files with 0 additions and 10 deletions

View File

@ -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;
}