mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-02-26 08:22:31 +00:00
Fix mandatory elements before writing a master to the file.
Otherwise libebml might assert() because some mandatory elements are missing. This mostly happens with files not created by libebml itself, e.g. those by HandBrake. Fix for bug 445.
This commit is contained in:
parent
416f25ba0a
commit
ccd548a4ec
@ -302,6 +302,8 @@ kax_analyzer_c::read_element(kax_analyzer_data_c *element_data) {
|
||||
kax_analyzer_c::update_element_result_e
|
||||
kax_analyzer_c::update_element(EbmlElement *e,
|
||||
bool write_defaults) {
|
||||
fix_mandatory_elements(e);
|
||||
|
||||
try {
|
||||
call_and_validate({}, "update_element_0");
|
||||
call_and_validate(overwrite_all_instances(e->Generic().GlobalId), "update_element_1");
|
||||
|
Loading…
Reference in New Issue
Block a user