Don't try and read a trackEncryptionBox unless we actually have a saiz atom to parse.
Issue: #35
This commit is contained in:
parent
14048b013a
commit
92e3208121
@ -781,10 +781,10 @@ public final class FragmentedMp4Extractor {
|
|||||||
LeafAtom trun = traf.getLeafAtomOfType(Atom.TYPE_trun);
|
LeafAtom trun = traf.getLeafAtomOfType(Atom.TYPE_trun);
|
||||||
parseTrun(track, fragmentHeader, decodeTime, workaroundFlags, trun.data, out);
|
parseTrun(track, fragmentHeader, decodeTime, workaroundFlags, trun.data, out);
|
||||||
|
|
||||||
TrackEncryptionBox trackEncryptionBox =
|
|
||||||
track.sampleDescriptionEncryptionBoxes[fragmentHeader.sampleDescriptionIndex];
|
|
||||||
LeafAtom saiz = traf.getLeafAtomOfType(Atom.TYPE_saiz);
|
LeafAtom saiz = traf.getLeafAtomOfType(Atom.TYPE_saiz);
|
||||||
if (saiz != null) {
|
if (saiz != null) {
|
||||||
|
TrackEncryptionBox trackEncryptionBox =
|
||||||
|
track.sampleDescriptionEncryptionBoxes[fragmentHeader.sampleDescriptionIndex];
|
||||||
parseSaiz(trackEncryptionBox, saiz.data, out);
|
parseSaiz(trackEncryptionBox, saiz.data, out);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user