Make WordPress Core


Ignore:
Timestamp:
10/04/2022 02:06:29 AM (3 years ago)
Author:
desrosj
Message:

External Libraries: Update getID3 to version 1.9.22.

This updates the getID3 library from version 1.9.21 to 1.9.22, which contains a number of bug fixes and improvements to PHP 8.1 support.

A full list of changes can be found on GitHub: https://github.com/JamesHeinrich/getID3/compare/v1.9.21...v1.9.22.

Props jrf, desrosj.
Fixes #56692.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ID3/module.audio.mp3.php

    r52254 r54376  
    316316        }
    317317
     318        if (isset($thisfile_mpeg_audio['bitrate']) && $thisfile_mpeg_audio['bitrate'] === 'free') {
     319            $encoder_options .= ' --freeformat';
     320        }
     321
    318322        if (!empty($thisfile_mpeg_audio_lame['encoding_flags']['nogap_prev']) || !empty($thisfile_mpeg_audio_lame['encoding_flags']['nogap_next'])) {
    319323            $encoder_options .= ' --nogap';
     
    751755
    752756                            // It the LAME tag was only introduced in LAME v3.90
    753                             // http://www.hydrogenaudio.org/?act=ST&f=15&t=9933
     757                            // https://wiki.hydrogenaud.io/index.php/LAME#VBR_header_and_LAME_tag
     758                            // https://hydrogenaud.io/index.php?topic=9933
    754759
    755760                            // Offsets of various bytes in http://gabriel.mp3-tech.org/mp3infotag.html
     
    787792
    788793                            // bytes $A7-$AE  Replay Gain
    789                             // http://privatewww.essex.ac.uk/~djmrob/replaygain/rg_data_format.html
     794                            // https://web.archive.org/web/20021015212753/http://privatewww.essex.ac.uk/~djmrob/replaygain/rg_data_format.html
    790795                            // bytes $A7-$AA : 32 bit floating point "Peak signal amplitude"
    791796                            if ($thisfile_mpeg_audio_lame['short_version'] >= 'LAME3.94b') {
     
    915920
    916921                            // LAME CBR
    917                             if ($thisfile_mpeg_audio_lame_raw['vbr_method'] == 1) {
     922                            if ($thisfile_mpeg_audio_lame_raw['vbr_method'] == 1 && $thisfile_mpeg_audio['bitrate'] !== 'free') {
    918923
    919924                                $thisfile_mpeg_audio['bitrate_mode'] = 'cbr';
     
    11701175            $nextframetestarray = array('error' => array(), 'warning' => array(), 'avdataend' => $info['avdataend'], 'avdataoffset'=>$info['avdataoffset']);
    11711176            if ($this->decodeMPEGaudioHeader($nextframetestoffset, $nextframetestarray, false)) {
     1177                /** @phpstan-ignore-next-line */
    11721178                getid3_lib::safe_inc($info['mp3_validity_check_bitrates'][$nextframetestarray['mpeg']['audio']['bitrate']]);
    11731179                if ($ScanAsCBR) {
Note: See TracChangeset for help on using the changeset viewer.