mirror of
https://github.com/samsonjs/media.git
synced 2026-06-29 05:39:31 +00:00
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
1 changed files with 2 additions and 2 deletions
|
|
@ -781,10 +781,10 @@ public final class FragmentedMp4Extractor {
|
|||
LeafAtom trun = traf.getLeafAtomOfType(Atom.TYPE_trun);
|
||||
parseTrun(track, fragmentHeader, decodeTime, workaroundFlags, trun.data, out);
|
||||
|
||||
TrackEncryptionBox trackEncryptionBox =
|
||||
track.sampleDescriptionEncryptionBoxes[fragmentHeader.sampleDescriptionIndex];
|
||||
LeafAtom saiz = traf.getLeafAtomOfType(Atom.TYPE_saiz);
|
||||
if (saiz != null) {
|
||||
TrackEncryptionBox trackEncryptionBox =
|
||||
track.sampleDescriptionEncryptionBoxes[fragmentHeader.sampleDescriptionIndex];
|
||||
parseSaiz(trackEncryptionBox, saiz.data, out);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue