Parsed: 112351

  public function quicktime_bookmark_time_scale($info) {
    $time_scale = '';
    $ts_prefix_len = 0;
    $res = array();
    $this->getid3_quicktime::search_tag_by_pair($info['quicktime']['moov'], 'name', 'stbl', 'quicktime/moov', $res);
    foreach ($res as $value) {
      $stbl_res = array();
      $this->getid3_quicktime::search_tag_by_pair($value[1], 'data_format', 'text', $value[0], $stbl_res);
      if (count($stbl_res) > 0) {
        $ts_res = array();
        $this->getid3_quicktime::search_tag_by_key($info['quicktime']['moov'], 'time_scale', 'quicktime/moov', $ts_res);
        foreach ($ts_res as $sub_value) {
          $prefix = substr($sub_value[0], 0, -12);
          if ((substr($stbl_res[0][0], 0, strlen($prefix)) === $prefix) && ($ts_prefix_len < strlen($prefix))) {
            $time_scale = $sub_value[1]['time_scale'];
            $ts_prefix_len = strlen($prefix);
          }
        }
      }
    }
    return $time_scale;
  }