Changeset 61289 for branches/6.9/src/wp-includes/ID3/module.audio.ogg.php
- Timestamp:
- 11/24/2025 06:36:59 PM (3 months ago)
- Location:
- branches/6.9
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/ID3/module.audio.ogg.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.9
-
branches/6.9/src/wp-includes/ID3/module.audio.ogg.php
r60812 r61289 351 351 $LastChunkOfOgg = strrev($this->fread($this->getid3->fread_buffer_size())); 352 352 if ($LastOggSpostion = strpos($LastChunkOfOgg, 'SggO')) { 353 if (substr($LastChunkOfOgg, 13, 8) === "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF") { 354 // https://github.com/JamesHeinrich/getID3/issues/450 355 // "Sometimes, Opus encoders (WhatsApp voice registrations and others) add a special last header with a granule duration of 0xFFFFFFFFFFFFFF. 356 // This value indicates "this is the end," but must be ignored; otherwise, it makes calculations wrong." 357 $LastOggSpostion = strpos($LastChunkOfOgg, 'SggO', $LastOggSpostion + 1); 358 } 353 359 $this->fseek($info['avdataend'] - ($LastOggSpostion + strlen('SggO'))); 354 360 $info['avdataend'] = $this->ftell();
Note: See TracChangeset
for help on using the changeset viewer.