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:
Moritz Bunkus 2020-08-01 18:40:29 +02:00
parent 2fef0d8a1e
commit a3cec3b000
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85

View File

@ -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;
}
};