Parsed: 112255

  public function expGolombUe() {
    $significantBits = 0;
    $bit = $this->AVCSequenceParameterSetReader::getBit();
    while ($bit == 0) {
      $significantBits++;
      $bit = $this->AVCSequenceParameterSetReader::getBit();

      if ($significantBits > 31) {
        // something is broken, this is an emergency escape to prevent infinite loops
        return 0;
      }
    }
    return (1 << $significantBits) + $this->AVCSequenceParameterSetReader::getBits($significantBits) - 1;
  }