mkvtoolnix/tests/test-280replace_one_byte_with_ebmlvoid.rb
Moritz Bunkus 71c8a881ec Handle 'fill one byte with void element' if the next element has max size length
kax_analyzer_c's code for handling a gap of one byte took the
following element, moved its header one byte to the front and rewrote
the size one byte bigger than before. This breaks if the following
element's size was already written with eight bytes. lavf creates such
files.

Fix for bug 536.
2010-08-24 20:24:54 +02:00

15 lines
338 B
Ruby

#!/usr/bin/ruby -w
class T_280replace_one_byte_with_ebmlvoid < Test
def description
return "mkvpropedit / Replace one byte with en EbmlVoid"
end
def run
sys "cp data/mkv/sample-bug536.mkv #{tmp}"
sys "../src/mkvpropedit #{tmp} --edit track:v1 --set display-width=1600 --set display-height=768"
hash_tmp
end
end