wp/wp-includes/ID3/module.tag.id3v1.php
changeset 5 5e2f62d02dcd
parent 0 d970ebf37754
child 7 cf61fcea0001
equal deleted inserted replaced
4:346c88efed21 5:5e2f62d02dcd
     1 <?php
     1 <?php
     2 /////////////////////////////////////////////////////////////////
     2 /////////////////////////////////////////////////////////////////
     3 /// getID3() by James Heinrich <info@getid3.org>               //
     3 /// getID3() by James Heinrich <info@getid3.org>               //
     4 //  available at http://getid3.sourceforge.net                 //
     4 //  available at http://getid3.sourceforge.net                 //
     5 //            or http://www.getid3.org                         //
     5 //            or http://www.getid3.org                         //
       
     6 //          also https://github.com/JamesHeinrich/getID3       //
     6 /////////////////////////////////////////////////////////////////
     7 /////////////////////////////////////////////////////////////////
     7 // See readme.txt for more details                             //
     8 // See readme.txt for more details                             //
     8 /////////////////////////////////////////////////////////////////
     9 /////////////////////////////////////////////////////////////////
     9 //                                                             //
    10 //                                                             //
    10 // module.tag.id3v1.php                                        //
    11 // module.tag.id3v1.php                                        //
    23 		if (!getid3_lib::intValueSupported($info['filesize'])) {
    24 		if (!getid3_lib::intValueSupported($info['filesize'])) {
    24 			$info['warning'][] = 'Unable to check for ID3v1 because file is larger than '.round(PHP_INT_MAX / 1073741824).'GB';
    25 			$info['warning'][] = 'Unable to check for ID3v1 because file is larger than '.round(PHP_INT_MAX / 1073741824).'GB';
    25 			return false;
    26 			return false;
    26 		}
    27 		}
    27 
    28 
    28 		fseek($this->getid3->fp, -256, SEEK_END);
    29 		$this->fseek(-256, SEEK_END);
    29 		$preid3v1 = fread($this->getid3->fp, 128);
    30 		$preid3v1 = $this->fread(128);
    30 		$id3v1tag = fread($this->getid3->fp, 128);
    31 		$id3v1tag = $this->fread(128);
    31 
    32 
    32 		if (substr($id3v1tag, 0, 3) == 'TAG') {
    33 		if (substr($id3v1tag, 0, 3) == 'TAG') {
    33 
    34 
    34 			$info['avdataend'] = $info['filesize'] - 128;
    35 			$info['avdataend'] = $info['filesize'] - 128;
    35 
    36