Commit 1cbc32d8 authored by aurel's avatar aurel

matroska: scale timecode according to time_scale

fixes jerky playback of planet.earth.mkv


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7181 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a5eef1c2
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment