forked from FFmpeg/FFmpeg
oggdec: Fix duration calculation for streams with non-zero start
Originally committed as revision 22458 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
32ad869284
commit
77560b0ef1
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue