Make WordPress Core


Ignore:
Timestamp:
10/04/2022 02:06:29 AM (2 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-video.riff.php

    r52254 r54376  
    809809                                    $strfData = $thisfile_riff['AVI ']['hdrl']['strl']['strf'][$i]['data'];
    810810
     811                                    if (!isset($thisfile_riff_raw['strf'][$strhfccType][$streamindex])) {
     812                                        $thisfile_riff_raw['strf'][$strhfccType][$streamindex] = null;
     813                                    }
    811814                                    // shortcut
    812815                                    $thisfile_riff_raw_strf_strhfccType_streamindex = &$thisfile_riff_raw['strf'][$strhfccType][$streamindex];
     
    13541357            $info['playtime_seconds'] = 0;
    13551358        }
    1356         if (isset($thisfile_riff_raw['strh'][0]['dwLength']) && isset($thisfile_riff_raw['avih']['dwMicroSecPerFrame'])) {
     1359        if (isset($thisfile_riff_raw['strh'][0]['dwLength']) && isset($thisfile_riff_raw['avih']['dwMicroSecPerFrame'])) { // @phpstan-ignore-line
    13571360            // needed for >2GB AVIs where 'avih' chunk only lists number of frames in that chunk, not entire movie
    13581361            $info['playtime_seconds'] = $thisfile_riff_raw['strh'][0]['dwLength'] * ($thisfile_riff_raw['avih']['dwMicroSecPerFrame'] / 1000000);
    1359         } elseif (isset($thisfile_riff_raw['avih']['dwTotalFrames']) && isset($thisfile_riff_raw['avih']['dwMicroSecPerFrame'])) {
     1362        } elseif (isset($thisfile_riff_raw['avih']['dwTotalFrames']) && isset($thisfile_riff_raw['avih']['dwMicroSecPerFrame'])) { // @phpstan-ignore-line
    13601363            $info['playtime_seconds'] = $thisfile_riff_raw['avih']['dwTotalFrames'] * ($thisfile_riff_raw['avih']['dwMicroSecPerFrame'] / 1000000);
    13611364        }
     
    15801583        $info = &$this->getid3->info;
    15811584
    1582         $RIFFchunk = false;
     1585        $RIFFchunk = array();
    15831586        $FoundAllChunksWeNeed = false;
    15841587        $LISTchunkParent = null;
     
    19351938        }
    19361939
    1937         return $RIFFchunk;
     1940        return !empty($RIFFchunk) ? $RIFFchunk : false;
    19381941    }
    19391942
Note: See TracChangeset for help on using the changeset viewer.