From: Aurelien Jacobs Date: Tue, 28 Nov 2006 23:41:53 +0000 (+0000) Subject: matroska: scale timecode according to time_scale X-Git-Tag: v0.5~10896 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=be691b106048fdf118df248458d80a4d36fded2a;p=platform%2Fupstream%2Flibav.git matroska: scale timecode according to time_scale fixes jerky playback of planet.earth.mkv Originally committed as revision 7181 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavformat/matroska.c b/libavformat/matroska.c index 582d7d8..0cd119e 100644 --- a/libavformat/matroska.c +++ b/libavformat/matroska.c @@ -2536,7 +2536,7 @@ matroska_parse_blockgroup (MatroskaDemuxContext *matroska, } if (cluster_time != (uint64_t)-1 && n == 0) { if (cluster_time + block_time >= 0) - timecode = cluster_time + block_time; + timecode = (cluster_time + block_time) * matroska->time_scale; } /* FIXME: duration */