Parse all UUID boxes, not just the first one.

This commit is contained in:
Oliver Woodman 2014-10-27 10:51:45 +00:00
parent 1f0d411886
commit b8415dba59

View File

@ -751,9 +751,12 @@ public final class FragmentedMp4Extractor implements Extractor {
parseSenc(senc.data, out); parseSenc(senc.data, out);
} }
LeafAtom uuid = traf.getLeafAtomOfType(Atom.TYPE_uuid); int childrenSize = traf.children.size();
if (uuid != null) { for (int i = 0; i < childrenSize; i++) {
parseUuid(uuid.data, out, extendedTypeScratch); Atom atom = traf.children.get(i);
if (atom.type == Atom.TYPE_uuid) {
parseUuid(((LeafAtom) atom).data, out, extendedTypeScratch);
}
} }
} }