[FFmpeg-cvslog] r22458 - trunk/libavformat/oggdec.c
conrad
subversion
Thu Mar 11 08:17:43 CET 2010
Author: conrad
Date: Thu Mar 11 08:17:43 2010
New Revision: 22458
Log:
oggdec: Fix duration calculation for streams with non-zero start
Modified:
trunk/libavformat/oggdec.c
Modified: trunk/libavformat/oggdec.c
==============================================================================
--- trunk/libavformat/oggdec.c Thu Mar 11 08:17:40 2010 (r22457)
+++ trunk/libavformat/oggdec.c Thu Mar 11 08:17:43 2010 (r22458)
@@ -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;
More information about the ffmpeg-cvslog
mailing list