$atom_parent =
end($atomHierarchy); // not array_pop($atomHierarchy); see https://www.getid3.org/phpBB3/viewtopic.php?t=1717
array_push($atomHierarchy,
$atomname);
$atom_structure = array
();
$atom_structure['hierarchy'
] =
implode(' ',
$atomHierarchy);
$atom_structure['name'
] =
$atomname;
$atom_structure['size'
] =
$atomsize;
$atom_structure['offset'
] =
$baseoffset;
if (substr($atomname, 0, 3
) == "\x00\x00\x00"
) { // https://github.com/JamesHeinrich/getID3/issues/139
$atomname = getid3_lib::
BigEndian2Int($atomname);
$atom_structure['name'
] =
$atomname;
$atom_structure['subatoms'
] =
$this->
QuicktimeParseContainerAtom($atom_data,
$baseoffset + 8,
$atomHierarchy,
$ParseAllPossibleAtoms);
} else { switch ($atomname) { case 'moov': // MOVie container atom
case 'moof': // MOvie Fragment box
case 'trak': // TRAcK container atom
case 'traf': // TRAck Fragment box
case 'clip': // CLIPping container atom
case 'matt': // track MATTe container atom
case 'edts': // EDiTS container atom
case 'tref': // Track REFerence container atom
case 'mdia': // MeDIA container atom