mirror of https://git.ffmpeg.org/ffmpeg.git
Remove start_time guessing code.
Originally committed as revision 13988 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
3041a4a13d
commit
dd7a68b6da
|
@ -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…
Reference in New Issue