123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- if (!defined('GETID3_INCLUDEPATH')) {
- exit;
- }
-
- class getid3_xz extends getid3_handler
- {
-
-
-
- public function Analyze() {
- $info = &$this->getid3->info;
-
- $this->fseek($info['avdataoffset']);
- $xzheader = $this->fread(6);
-
-
- $info['xz']['stream_header']['magic'] = substr($xzheader, 0, 6);
- if ($info['xz']['stream_header']['magic'] != "\xFD".'7zXZ'."\x00") {
- $this->error('Invalid XZ stream header magic (expecting FD 37 7A 58 5A 00, found '.getid3_lib::PrintHexBytes($info['xz']['stream_header']['magic']).') at offset '.$info['avdataoffset']);
- return false;
- }
- $info['fileformat'] = 'xz';
- $this->error('XZ parsing not enabled in this version of getID3() ['.$this->getid3->version().']');
- return false;
-
- }
-
- }
|