projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32ad869
)
oggdec: Fix duration calculation for streams with non-zero start
author
David Conrad
<lessen42@gmail.com>
Thu, 11 Mar 2010 07:17:43 +0000
(07:17 +0000)
committer
David Conrad
<lessen42@gmail.com>
Thu, 11 Mar 2010 07:17:43 +0000
(07:17 +0000)
Originally committed as revision 22458 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/oggdec.c
patch
|
blob
|
history
diff --git
a/libavformat/oggdec.c
b/libavformat/oggdec.c
index
58b8f96
..
bdbbf3f
100644
(file)
--- a/
libavformat/oggdec.c
+++ b/
libavformat/oggdec.c
@@
-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;