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.
This commit is contained in:
Moritz Bunkus 2015-11-29 08:37:49 +01:00
parent 58a35037a6
commit 1c28c9b93c

View File

@ -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<kax_analyzer_c>(m_in.get());
auto ok = analyzer->process(kax_analyzer_c::parse_mode_fast, MODE_READ, true);