mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-25 04:11:44 +00:00
eaa74b882c
The overwrite function already takes care of updating the element's size properly. Therefore it doesn't have to be done by mkvmerge before calling the function, especially if it's called wrong: - our manual call doesn't include elements with default value in the calculation - the replacement request does This led to the situation where mkvmerge thought that the new chapters would fit into the void while the replacement function disagreed causing the chapters not the be written at all. Fixes #1693.
12 lines
394 B
Ruby
Executable File
12 lines
394 B
Ruby
Executable File
#!/usr/bin/ruby -w
|
|
|
|
# T_548generate_chapters_interval
|
|
describe "mkvmerge / generate chapters in interval, exceed void size"
|
|
|
|
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 30, 40, 50, 60, 80].each do |interval|
|
|
test_merge "data/simple/v.mp3", args: "--generate-chapters interval:#{interval}s", keep_tmp: true
|
|
test "number of chapters" do
|
|
identify_json(tmp)["chapters"][0]["num_entries"]
|
|
end
|
|
end
|