mkvtoolnix/tests/test-511propedit_ensure_seek_head_exists_at_front.rb
Moritz Bunkus 5f05a366cc kax_analyzer_c: ensure there's always a seek head at the front
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.
2015-11-29 19:41:01 +01:00

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