Changeset 54376 for trunk/src/wp-includes/ID3/module.audio.mp3.php
- Timestamp:
- 10/04/2022 02:06:29 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ID3/module.audio.mp3.php
r52254 r54376 316 316 } 317 317 318 if (isset($thisfile_mpeg_audio['bitrate']) && $thisfile_mpeg_audio['bitrate'] === 'free') { 319 $encoder_options .= ' --freeformat'; 320 } 321 318 322 if (!empty($thisfile_mpeg_audio_lame['encoding_flags']['nogap_prev']) || !empty($thisfile_mpeg_audio_lame['encoding_flags']['nogap_next'])) { 319 323 $encoder_options .= ' --nogap'; … … 751 755 752 756 // 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 754 759 755 760 // Offsets of various bytes in http://gabriel.mp3-tech.org/mp3infotag.html … … 787 792 788 793 // bytes $A7-$AE Replay Gain 789 // http ://privatewww.essex.ac.uk/~djmrob/replaygain/rg_data_format.html794 // https://web.archive.org/web/20021015212753/http://privatewww.essex.ac.uk/~djmrob/replaygain/rg_data_format.html 790 795 // bytes $A7-$AA : 32 bit floating point "Peak signal amplitude" 791 796 if ($thisfile_mpeg_audio_lame['short_version'] >= 'LAME3.94b') { … … 915 920 916 921 // 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') { 918 923 919 924 $thisfile_mpeg_audio['bitrate_mode'] = 'cbr'; … … 1170 1175 $nextframetestarray = array('error' => array(), 'warning' => array(), 'avdataend' => $info['avdataend'], 'avdataoffset'=>$info['avdataoffset']); 1171 1176 if ($this->decodeMPEGaudioHeader($nextframetestoffset, $nextframetestarray, false)) { 1177 /** @phpstan-ignore-next-line */ 1172 1178 getid3_lib::safe_inc($info['mp3_validity_check_bitrates'][$nextframetestarray['mpeg']['audio']['bitrate']]); 1173 1179 if ($ScanAsCBR) {
Note: See TracChangeset
for help on using the changeset viewer.