Remove start_time guessing code.

Originally committed as revision 13988 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Michael Niedermayer 17 years ago
parent 3041a4a13d
commit dd7a68b6da
  1. 10
      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;
}

Loading…
Cancel
Save