changeset 1544:49256f9ea0e9 libavformat

matroska: scale timecode according to time_scale fixes jerky playback of planet.earth.mkv
author aurel
date Tue, 28 Nov 2006 23:41:53 +0000
parents 394a8590d5a0
children 8811d543732e
files matroska.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/matroska.c	Tue Nov 28 17:17:36 2006 +0000
+++ b/matroska.c	Tue Nov 28 23:41:53 2006 +0000
@@ -2536,7 +2536,7 @@
                         }
                         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 */