ParseOggPageHeader example

$this->warning('Illegal ID3v1 tag present.');
        }
        if (isset($info['ape'])) {
            $this->warning('Illegal APE tag present.');
        }


        // Page 1 - Stream Header
        $this->fseek($info['avdataoffset']);

        $oggpageinfo = $this->ParseOggPageHeader();
        $info['ogg']['pageheader'][$oggpageinfo['page_seqno']] = $oggpageinfo;

        if ($this->ftell() >= $this->getid3->fread_buffer_size()) {
            $this->error('Could not find start of Ogg page in the first '.$this->getid3->fread_buffer_size().' bytes (this might not be an Ogg-Vorbis file?)');
            unset($info['fileformat']);
            unset($info['ogg']);
            return false;
        }

        $filedata = $this->fread($oggpageinfo['page_length']);
        $filedataoffset = 0;

        
Home | Imprint | This part of the site doesn't use cookies.