mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 20:01:53 +00:00
Scale the duration to ns precision when reading Matroska files.
This commit is contained in:
parent
d9587bd3c1
commit
670d896647
@ -1,3 +1,8 @@
|
||||
2004-02-11 Moritz Bunkus <moritz@bunkus.org>
|
||||
|
||||
* mkvmerge: bug fix: When reading Matroska files the durations
|
||||
attached to blocks were lost (e.g. for subtitle tracks).
|
||||
|
||||
2004-02-09 Moritz Bunkus <moritz@bunkus.org>
|
||||
|
||||
* Released v0.8.3.
|
||||
|
@ -1655,7 +1655,7 @@ kax_reader_c::read(generic_packetizer_c *) {
|
||||
duration = static_cast<KaxBlockDuration *>
|
||||
(block_group->FindFirstElt(KaxBlockDuration::ClassInfos, false));
|
||||
if (duration != NULL)
|
||||
block_duration = (int64_t)uint64(*duration) /
|
||||
block_duration = (int64_t)uint64(*duration) * tc_scale /
|
||||
block->NumberFrames();
|
||||
else if (block_track->v_frate != 0)
|
||||
block_duration = (int64_t)(1000000000.0 / block_track->v_frate);
|
||||
@ -1679,7 +1679,7 @@ kax_reader_c::read(generic_packetizer_c *) {
|
||||
duration = static_cast<KaxBlockDuration *>
|
||||
(block_group->FindFirstElt(KaxBlockDuration::ClassInfos, false));
|
||||
if (duration != NULL)
|
||||
block_duration = (int64_t)uint64(*duration) /
|
||||
block_duration = (int64_t)uint64(*duration) * tc_scale /
|
||||
block->NumberFrames();
|
||||
else if (block_track->v_frate != 0)
|
||||
block_duration = (int64_t)(1000000000.0 / block_track->v_frate);
|
||||
|
Loading…
Reference in New Issue
Block a user