mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-26 04:42:04 +00:00
5f05a366cc
It is possible that the seek head at the front has been removed due to moving the seek head at the back one byte to the front which calls remove_from_meta_seeks() with that second seek head. This leads to the first seek head being empty and therefore being removed. Later calls to add_to_meta_seek() must therefore make sure that, even if the element could be added to an existing seek head at the end, a new seek head is created at the start referencing the one at the end. Fixes #1513.
14 lines
366 B
Ruby
Executable File
14 lines
366 B
Ruby
Executable File
#!/usr/bin/ruby -w
|
|
|
|
# T_511propedit_ensure_seek_head_exists_at_front
|
|
describe "mkvpropedit / ensuring that a seek head always exists at the front even if it's removed in between"
|
|
|
|
dir = "data/bugs/1513"
|
|
src = "#{dir}/src.mkv"
|
|
|
|
test src do
|
|
sys "cp #{src} #{tmp}"
|
|
propedit tmp, "--attachment-name 1234.jpg --replace-attachment 1:#{dir}/picture.jpg"
|
|
hash_tmp
|
|
end
|