mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-01-12 13:14:38 +00:00
mkvmerge: fix decision whether or not to write BlockAdditionMapping
BlockAddIDType is mandatory, all other elements optional. Therefore require the ID type to be set but don't care about the others. Part of the implementation of #2887.
This commit is contained in:
parent
2fef0d8a1e
commit
a3cec3b000
@ -19,6 +19,6 @@ struct block_addition_mapping_t {
|
||||
memory_cptr id_extra_data;
|
||||
|
||||
bool is_valid() const {
|
||||
return id_type || id_value || (id_extra_data && id_extra_data->get_size());
|
||||
return !!id_type;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user