wp-includes/ID3/module.audio-video.matroska.php:1998Scan start and end of file for cluster information when Duration is missing Only use this if no Duration was found in the Info element and we are not in parse_whole_file mode
$infoarrayvoid private function scanStartEndForClusters(&$info) { // Scan beginning of file for first cluster $this->resetParserBuffer($info['avdataoffset']); $this->scan_mode = MATROSKA_SCAN_FIRST_CLUSTER; try { $this->parseEBML($info); } catch (Exception $e) { $this->error('EBML parser (start of file): '.$e->getMessage()); } // Scan end of file for last cluster if (is_array($info['matroska']['cluster']) && !empty($info['matroska']['cluster'])) { // Scan maximum 1MB window before EOF $this->resetParserBuffer(max(0, $info['avdataend'] - (1024 * 1024))); $this->scan_mode = MATROSKA_SCAN_LAST_CLUSTER; try { $this->parseEBML($info); } catch (Exception $e) { $this->error('EBML parser (end of file): '.$e->getMessage()); } } // Reset to header parsing mode (this method is only called during header-only parsing) $this->scan_mode = MATROSKA_SCAN_HEADER; }Unchanged from 7.0.4 through 7.1.0.
Signature, return type and hooks compared across 2 parsed releases.
src/wp-includes/ID3/module.audio-video.matroska.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.