Changeset 54376 for trunk/src/wp-includes/ID3/module.audio-video.riff.php
- Timestamp:
- 10/04/2022 02:06:29 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ID3/module.audio-video.riff.php
r52254 r54376 809 809 $strfData = $thisfile_riff['AVI ']['hdrl']['strl']['strf'][$i]['data']; 810 810 811 if (!isset($thisfile_riff_raw['strf'][$strhfccType][$streamindex])) { 812 $thisfile_riff_raw['strf'][$strhfccType][$streamindex] = null; 813 } 811 814 // shortcut 812 815 $thisfile_riff_raw_strf_strhfccType_streamindex = &$thisfile_riff_raw['strf'][$strhfccType][$streamindex]; … … 1354 1357 $info['playtime_seconds'] = 0; 1355 1358 } 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 1357 1360 // needed for >2GB AVIs where 'avih' chunk only lists number of frames in that chunk, not entire movie 1358 1361 $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 1360 1363 $info['playtime_seconds'] = $thisfile_riff_raw['avih']['dwTotalFrames'] * ($thisfile_riff_raw['avih']['dwMicroSecPerFrame'] / 1000000); 1361 1364 } … … 1580 1583 $info = &$this->getid3->info; 1581 1584 1582 $RIFFchunk = false;1585 $RIFFchunk = array(); 1583 1586 $FoundAllChunksWeNeed = false; 1584 1587 $LISTchunkParent = null; … … 1935 1938 } 1936 1939 1937 return $RIFFchunk;1940 return !empty($RIFFchunk) ? $RIFFchunk : false; 1938 1941 } 1939 1942
Note: See TracChangeset
for help on using the changeset viewer.