I think that if this code returns before reading to the end of the atom, then parseMP4Metadata() will not work correctly.