From 1c28c9b93c08e100f334726676a83c290526c34e Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sun, 29 Nov 2015 08:37:49 +0100 Subject: [PATCH] Matroska reader: disable deep scanning unless requested Seems like popular tools like Haali's writer (which is used by e.g. x264) don't write seek heads resulting in very long scan times for big files. Therefore disable deep scans for the time being until a quicker solution is found. --- src/input/r_matroska.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/input/r_matroska.cpp b/src/input/r_matroska.cpp index df2638546..f8491013c 100644 --- a/src/input/r_matroska.cpp +++ b/src/input/r_matroska.cpp @@ -1205,6 +1205,9 @@ kax_reader_c::read_headers() { void kax_reader_c::find_level1_elements_via_analyzer() { + if (!debugging_c::requested("kax_reader_deep_scan")) + return; + try { auto analyzer = std::make_shared(m_in.get()); auto ok = analyzer->process(kax_analyzer_c::parse_mode_fast, MODE_READ, true);