Fix build with libmatroska 1.6.x (#1379)

The MATROSKA_VERSION define is gone as it was an ancient compilation flag to support writing Matroska v1 files.

Since the EDocTypeReadVersion is 2, using 2 as the Matroska version of the file seems the correct value to use.

Fixes the issue mentioned here https://github.com/Matroska-Org/libmatroska/issues/41#issuecomment-693278668
This commit is contained in:
Steve Lhomme 2021-03-18 02:03:14 +01:00 коммит произвёл GitHub
Родитель ec82b0b439
Коммит e354721e82
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -543,7 +543,7 @@ k4a_result_t k4a_record_write_header(const k4a_record_t recording_handle)
EbmlHead file_head;
GetChild<EDocType>(file_head).SetValue("matroska");
GetChild<EDocTypeVersion>(file_head).SetValue(MATROSKA_VERSION);
GetChild<EDocTypeVersion>(file_head).SetValue(2);
GetChild<EDocTypeReadVersion>(file_head).SetValue(2);
file_head.Render(*context->ebml_file, true);