Fix the split-decision for audio-only files. Also set the timecode scale factor on all output files.

This commit is contained in:
Moritz Bunkus 2005-03-19 11:54:26 +00:00
parent a3ccdb25ef
commit 6423c4e3b7
3 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2005-03-19 Moritz Bunkus <moritz@bunkus.org>
* mkvmerge: bug fix: Splitting by time was broken for audio-only
files.
* mkvmerge: bug fix: The --fourcc switch was not working.
2005-03-16 Moritz Bunkus <moritz@bunkus.org>

View File

@ -163,7 +163,8 @@ cluster_helper_c::add_packet(packet_t *packet) {
if ((header_overhead + additional_size + bytes_in_file) >= split_after)
split = true;
} else if ((packet->assigned_timecode - first_timecode_in_file) >=
} else if ((0 <= first_timecode_in_file) &&
(packet->assigned_timecode - first_timecode_in_file) >=
(split_after * 1000000ull))
split = true;

View File

@ -636,7 +636,8 @@ render_headers(mm_io_c *rout) {
for (i = 0; i < packetizers.size(); i++)
if (packetizers[i].packetizer != NULL)
packetizers[i].packetizer->fix_headers();
}
} else
set_timecode_scale();
kax_infos->Render(*rout, true);
kax_sh_main->IndexThis(*kax_infos, *kax_segment);