Skip to content

Commit

Permalink
Merge tag 'v1.9.22' into 2.0-with-1.9.22-202207161647
Browse files Browse the repository at this point in the history
# Conflicts:
#	README.md
#	src/GetID3.php
#	src/Module/Archive/Zip.php
#	src/Module/Audio/Aac.php
#	src/Module/AudioVideo/Asf.php
#	src/Module/AudioVideo/QuickTime.php
#	src/Module/Graphic/Gif.php
#	src/Utils.php
  • Loading branch information
StudioMaX committed Oct 28, 2022
1 parent 3d288d5 commit 1ea0196
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ if ($fp_remote = fopen($remotefilename, 'rb')) {
$remote_headers = array_change_key_case(get_headers($remotefilename, 1), CASE_LOWER);
$remote_filesize = (isset($remote_headers['content-length']) ? (is_array($remote_headers['content-length']) ? $remote_headers['content-length'][count($remote_headers['content-length']) - 1] : $remote_headers['content-length']) : null);

// Initialize getID3 engine
$getID3 = new getID3;
// Initialize GetID3 engine
$getID3 = new GetID3;

$ThisFileInfo = $getID3->analyze($localtempfilename, $remote_filesize, basename($remotefilename));

Expand Down
4 changes: 2 additions & 2 deletions src/Module/AudioVideo/QuickTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -1517,7 +1517,7 @@ public function QuicktimeParseAtom($atomname, $atomsize, $atom_data, $baseoffset
$OldAVDataEnd = $info['avdataend'];
$info['avdataend'] = $atom_structure['offset'] + $atom_structure['size']; // $info['quicktime'][$atomname]['offset'] + $info['quicktime'][$atomname]['size'];

$getid3_temp = new getID3();
$getid3_temp = new GetID3();
$getid3_temp->openfile($this->getid3->filename, $this->getid3->info['filesize'], $this->getid3->fp);
$getid3_temp->info['avdataoffset'] = $info['avdataoffset'];
$getid3_temp->info['avdataend'] = $info['avdataend'];
Expand Down Expand Up @@ -1552,7 +1552,7 @@ public function QuicktimeParseAtom($atomname, $atomsize, $atom_data, $baseoffset
break;

case 'ID32': // ID3v2
$getid3_temp = new getID3();
$getid3_temp = new GetID3();
$getid3_temp->openfile($this->getid3->filename, $this->getid3->info['filesize'], $this->getid3->fp);
$getid3_id3v2 = new ID3v2($getid3_temp);
$getid3_id3v2->StartingOffset = $atom_structure['offset'] + 14; // framelength(4)+framename(4)+flags(4)+??(2)
Expand Down
2 changes: 1 addition & 1 deletion src/Module/AudioVideo/Riff.php
Original file line number Diff line number Diff line change
Expand Up @@ -2158,7 +2158,7 @@ public static function ParseBITMAPINFOHEADER($BITMAPINFOHEADER, $littleEndian=tr
$parsed['biYPelsPerMeter'] = substr($BITMAPINFOHEADER, 28, 4); // vertical resolution, in pixels per metre, of the target device
$parsed['biClrUsed'] = substr($BITMAPINFOHEADER, 32, 4); // actual number of color indices in the color table used by the bitmap. If this value is zero, the bitmap uses the maximum number of colors corresponding to the value of the biBitCount member for the compression mode specified by biCompression
$parsed['biClrImportant'] = substr($BITMAPINFOHEADER, 36, 4); // number of color indices that are considered important for displaying the bitmap. If this value is zero, all colors are important
$parsed = array_map('Utils::'.($littleEndian ? 'Little' : 'Big').'Endian2Int', $parsed);
$parsed = array_map('JamesHeinrich\\GetID3\\Utils::'.($littleEndian ? 'Little' : 'Big').'Endian2Int', $parsed);

$parsed['fourcc'] = substr($BITMAPINFOHEADER, 16, 4); // compression identifier

Expand Down

0 comments on commit 1ea0196

Please sign in to comment.