Opus extraction: don't write version number with --engage no_variable_data

This commit is contained in:
Moritz Bunkus 2013-09-16 21:59:51 +02:00
parent fcf8710fc6
commit 1e74fe7547
2 changed files with 2 additions and 2 deletions

View File

@ -371,7 +371,7 @@ xtr_oggopus_c::create_file(xtr_base_c *master,
void
xtr_oggopus_c::header_packets_unlaced(std::vector<memory_cptr> &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<char *>(mem->get_buffer());

View File

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