37 $info = &$this->getid3->info;
39 fseek($this->getid3->fp,
$info[
'avdataoffset'], SEEK_SET);
40 $SZIPHeader =
fread($this->getid3->fp, 6);
41 if (substr($SZIPHeader, 0, 4) !=
"SZ\x0A\x04") {
48 $info[
'fileformat'] =
'szip';
56 while (!
feof($this->getid3->fp)) {
57 $NextBlockID =
fread($this->getid3->fp, 2);
58 switch ($NextBlockID) {
63 fseek($this->getid3->fp, 4, SEEK_CUR);
69 $BHheaderdata =
fread($this->getid3->fp, $BHheaderbytes);
71 while (strpos($BHheaderdata,
"\x00", $BHheaderoffset) > 0) {
81 $BHdataArray[
'filename'] = substr($BHheaderdata,
83 strcspn($BHheaderdata,
85 $BHheaderoffset += (strlen($BHdataArray[
'filename']) + 1);
87 $BHdataArray[
'owner'] = substr($BHheaderdata,
89 strcspn($BHheaderdata,
91 $BHheaderoffset += (strlen($BHdataArray[
'owner']) + 1);
93 $BHdataArray[
'group'] = substr($BHheaderdata,
95 strcspn($BHheaderdata,
97 $BHheaderoffset += (strlen($BHdataArray[
'group']) + 1);
102 $BHheaderoffset += 3;
107 $BHheaderoffset += 2;
112 $BHheaderoffset += 4;
117 $BHheaderoffset += 4;
122 $BHheaderoffset += 4;
124 $info[
'szip'][
'BH'][] = $BHdataArray;
static PrintHexBytes($string, $hex=true, $spaces=true, $htmlencoding='UTF-8')
GetId3() by James Heinrich info@getid3.org //.
fseek($bytes, $whence=SEEK_SET)
static BigEndian2Int($byteword, $synchsafe=false, $signed=false)
GetId3() by James Heinrich info@getid3.org //.