Minor fixes
git-svn-id: http://php-reader.googlecode.com/svn/trunk@93 51a70ab9-7547-0410-9469-37e369ee0574
This commit is contained in:
@@ -117,7 +117,7 @@ final class ID3_ExtendedHeader extends ID3_Object
|
||||
$this->_size = $this->decodeSynchsafe32($this->_reader->readUInt32BE());
|
||||
|
||||
/* ID3v2.3.0 ExtendedHeader */
|
||||
if (isset($this->_options["version"]) && $this->_options["version"] < 4) {
|
||||
if ($this->getOption("version", 4) < 4) {
|
||||
if ($this->_reader->readUInt16BE() == 0x8000)
|
||||
$this->_flags = self::CRC32;
|
||||
$this->_padding = $this->_reader->readUInt32BE();
|
||||
@@ -299,7 +299,7 @@ final class ID3_ExtendedHeader extends ID3_Object
|
||||
public function __toString()
|
||||
{
|
||||
/* ID3v2.3.0 ExtendedHeader */
|
||||
if (isset($this->_options["version"]) && $this->_options["version"] < 4) {
|
||||
if ($this->getOption("version", 4) < 4) {
|
||||
return Transform::toUInt32BE($this->_size) .
|
||||
Transform::toUInt16BE($this->hasFlag(self::CRC32) ? 0x8000 : 0) .
|
||||
Transform::toUInt32BE($this->_padding) .
|
||||
|
||||
Reference in New Issue
Block a user