Minor fixes
git-svn-id: http://php-reader.googlecode.com/svn/trunk@93 51a70ab9-7547-0410-9469-37e369ee0574
This commit is contained in:
@@ -263,7 +263,7 @@ class ISO14496_Box
|
||||
if ($size == 0)
|
||||
$size = $this->_reader->getSize() - $offset;
|
||||
|
||||
if (preg_match("/^\xa9?[a-z]{3,4}$/i", $type) &&
|
||||
if (preg_match("/^\xa9?[a-z0-9]{3,4}$/i", $type) &&
|
||||
substr($base, 0, min(strlen($base), strlen
|
||||
($tmp = $path . ($path ? "." : "") . $type))) ==
|
||||
substr($tmp, 0, min(strlen($base), strlen($tmp))))
|
||||
@@ -287,14 +287,6 @@ class ISO14496_Box
|
||||
array_pop(self::$_path);
|
||||
}
|
||||
|
||||
protected function getPath()
|
||||
{
|
||||
$path = "";
|
||||
echo "box: " .$this->getType() . ", parent: " . $this->getParent()."\n";
|
||||
for ($child = $this; ($parent = $child->getParent()) !== null; $child = $parent){echo "parent found";$path = $parent->getType() . "." . $path;};
|
||||
return $path;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks whether the box given as an argument is present in the file. Returns
|
||||
* <var>true</var> if one or more boxes are present, <var>false</var>
|
||||
|
||||
Reference in New Issue
Block a user