From 1e74fe7547e5e4b56934ffafaf36211d4dee87b1 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 16 Sep 2013 21:59:51 +0200 Subject: [PATCH] Opus extraction: don't write version number with --engage no_variable_data --- src/extract/xtr_ogg.cpp | 2 +- tests/results.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extract/xtr_ogg.cpp b/src/extract/xtr_ogg.cpp index c0a2a7cff..2def163be 100644 --- a/src/extract/xtr_ogg.cpp +++ b/src/extract/xtr_ogg.cpp @@ -371,7 +371,7 @@ xtr_oggopus_c::create_file(xtr_base_c *master, void xtr_oggopus_c::header_packets_unlaced(std::vector &header_packets) { auto signature = std::string{"OpusTags"}; - auto version = std::string{"unknown encoder; extracted from Matroska with "} + get_version_info("mkvextract"); + auto version = std::string{"unknown encoder; extracted from Matroska with "} + (!hack_engaged(ENGAGE_NO_VARIABLE_DATA) ? get_version_info("mkvextract") : std::string{"mkvextract"}); auto ver_len = version.length(); auto mem = memory_c::alloc(8 + 4 + ver_len + 4); auto buffer = reinterpret_cast(mem->get_buffer()); diff --git a/tests/results.txt b/tests/results.txt index 291860944..77b990d79 100644 --- a/tests/results.txt +++ b/tests/results.txt @@ -249,5 +249,5 @@ T_400opus_experimental:ce4f0bd0c52a9d410ce34b5751416c63:passed:20130703-213929:0 T_401opus_experimental_remux:a910a17383083f2fa75001efd175c352:passed:20130703-213932:0.06857043 T_402opus_output_order:e7d89f40e06bd81db8fa20b2ea6218b8:passed:20130705-115856:0.252820697 T_403opus_remux_final:da99246c61326c47a530f95948b088be:passed:20130705-135811:0.068533558 -T_404opus_extraction:260c14bf629e870de7d65cb38f825bc2:passed:20130915-201931:0.050758351 +T_404opus_extraction:0aba264a50870d5cd62d8d12543898bd:passed:20130915-201931:0.050758351 T_405packet_ordering_and_default_duration:82371939190a54b30998961d1037d491:passed:20130916-211719:0.258475566