Changeset 56975 for trunk/src/wp-includes/ID3/module.audio-video.asf.php
- Timestamp:
- 10/20/2023 01:27:56 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ID3/module.audio-video.asf.php
r54376 r56975 194 194 195 195 //$info['bitrate'] = $thisfile_asf_filepropertiesobject['max_bitrate']; 196 $info['bitrate'] = ((isset($thisfile_asf_filepropertiesobject['filesize']) ? $thisfile_asf_filepropertiesobject['filesize'] : $info['filesize']) * 8) / $info['playtime_seconds'];196 $info['bitrate'] = getid3_lib::SafeDiv($thisfile_asf_filepropertiesobject['filesize'] * 8, $info['playtime_seconds']); 197 197 } 198 198 break; … … 1067 1067 } 1068 1068 1069 if (!empty($thisfile_asf['stream_bitrate_properties_object']['bitrate_records'])) { 1069 if (!empty($thisfile_asf['stream_bitrate_properties_object']['bitrate_records'])) { // @phpstan-ignore-line 1070 1070 foreach ($thisfile_asf['stream_bitrate_properties_object']['bitrate_records'] as $dummy => $dataarray) { 1071 1071 if (isset($dataarray['flags']['stream_number']) && ($dataarray['flags']['stream_number'] == $streamnumber)) { … … 1153 1153 $thisfile_asf_videomedia_currentstream['format_data']['codec_data'] = substr($streamdata['type_specific_data'], $videomediaoffset); 1154 1154 1155 if (!empty($thisfile_asf['stream_bitrate_properties_object']['bitrate_records'])) { 1155 if (!empty($thisfile_asf['stream_bitrate_properties_object']['bitrate_records'])) { // @phpstan-ignore-line 1156 1156 foreach ($thisfile_asf['stream_bitrate_properties_object']['bitrate_records'] as $dummy => $dataarray) { 1157 1157 if (isset($dataarray['flags']['stream_number']) && ($dataarray['flags']['stream_number'] == $streamnumber)) {
Note: See TracChangeset
for help on using the changeset viewer.