equal
deleted
inserted
replaced
91 $info['flv']['header']['signature'] = substr($FLVheader, 0, 3); |
91 $info['flv']['header']['signature'] = substr($FLVheader, 0, 3); |
92 $info['flv']['header']['version'] = getid3_lib::BigEndian2Int(substr($FLVheader, 3, 1)); |
92 $info['flv']['header']['version'] = getid3_lib::BigEndian2Int(substr($FLVheader, 3, 1)); |
93 $TypeFlags = getid3_lib::BigEndian2Int(substr($FLVheader, 4, 1)); |
93 $TypeFlags = getid3_lib::BigEndian2Int(substr($FLVheader, 4, 1)); |
94 |
94 |
95 if ($info['flv']['header']['signature'] != self::magic) { |
95 if ($info['flv']['header']['signature'] != self::magic) { |
96 $info['error'][] = 'Expecting "'.getid3_lib::PrintHexBytes(self::magic).'" at offset '.$info['avdataoffset'].', found "'.getid3_lib::PrintHexBytes($info['flv']['header']['signature']).'"'; |
96 $this->error('Expecting "'.getid3_lib::PrintHexBytes(self::magic).'" at offset '.$info['avdataoffset'].', found "'.getid3_lib::PrintHexBytes($info['flv']['header']['signature']).'"'); |
97 unset($info['flv'], $info['fileformat']); |
97 unset($info['flv'], $info['fileformat']); |
98 return false; |
98 return false; |
99 } |
99 } |
100 |
100 |
101 $info['flv']['header']['hasAudio'] = (bool) ($TypeFlags & 0x04); |
101 $info['flv']['header']['hasAudio'] = (bool) ($TypeFlags & 0x04); |
539 break; |
539 break; |
540 |
540 |
541 // Long string |
541 // Long string |
542 default: |
542 default: |
543 $value = '(unknown or unsupported data type)'; |
543 $value = '(unknown or unsupported data type)'; |
544 break; |
544 break; |
545 } |
545 } |
546 |
546 |
547 return $value; |
547 return $value; |
548 } |
548 } |
549 |
549 |