EBML2Int example

case EBML_ID_SEEKHEAD: // Contains the position of other level 1 elements.
                                while ($this->getEBMLelement($seek_entry$element_data['end'])) {
                                    switch ($seek_entry['id']) {

                                        case EBML_ID_SEEK: // Contains a single seek entry to an EBML element                                             while ($this->getEBMLelement($sub_seek_entry$seek_entry['end'], true)) {

                                                switch ($sub_seek_entry['id']) {

                                                    case EBML_ID_SEEKID:
                                                        $seek_entry['target_id']   = self::EBML2Int($sub_seek_entry['data']);
                                                        $seek_entry['target_name'] = self::EBMLidName($seek_entry['target_id']);
                                                        break;

                                                    case EBML_ID_SEEKPOSITION:
                                                        $seek_entry['target_offset'] = $element_data['offset'] + getid3_lib::BigEndian2Int($sub_seek_entry['data']);
                                                        break;

                                                    default:
                                                        $this->unhandledElement('seekhead.seek', __LINE__, $sub_seek_entry);                                                }
                                                        break;
                                            }
                                            
Home | Imprint | This part of the site doesn't use cookies.