Commit 36fe4ad8 authored by conrad's avatar conrad

oggdec: Fix duration calculation for streams with non-zero start

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22458 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a8dd4cd2
......@@ -460,6 +460,8 @@ ogg_get_length (AVFormatContext * s)
if (idx != -1){
s->streams[idx]->duration =
ogg_gptopts (s, idx, ogg->streams[idx].granule, NULL);
if (s->streams[idx]->start_time != AV_NOPTS_VALUE)
s->streams[idx]->duration -= s->streams[idx]->start_time;
}
ogg->size = size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment