mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
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
This commit is contained in:
parent
7f25df4cd3
commit
be691b1060
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user