Fix NPE setting drm scheme type
drmInitData can be null in DASH if all of the init data is specified at the manifest level instead. I took a look at injecting the manifest format into the extractors, so that we can actually copy the scheme type into it, but that's at least non-trivial enough to delay for a subsequent CL. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=161956246
This commit is contained in:
parent
0869802173
commit
a2ffcec200
@ -678,7 +678,8 @@ import java.util.List;
|
||||
parent, position, size);
|
||||
if (sampleEntryEncryptionData != null) {
|
||||
atomType = sampleEntryEncryptionData.first;
|
||||
drmInitData = drmInitData.copyWithSchemeType(sampleEntryEncryptionData.second.schemeType);
|
||||
drmInitData = drmInitData == null ? null
|
||||
: drmInitData.copyWithSchemeType(sampleEntryEncryptionData.second.schemeType);
|
||||
out.trackEncryptionBoxes[entryIndex] = sampleEntryEncryptionData.second;
|
||||
}
|
||||
parent.setPosition(childPosition);
|
||||
@ -857,7 +858,8 @@ import java.util.List;
|
||||
parent, position, size);
|
||||
if (sampleEntryEncryptionData != null) {
|
||||
atomType = sampleEntryEncryptionData.first;
|
||||
drmInitData = drmInitData.copyWithSchemeType(sampleEntryEncryptionData.second.schemeType);
|
||||
drmInitData = drmInitData == null ? null
|
||||
: drmInitData.copyWithSchemeType(sampleEntryEncryptionData.second.schemeType);
|
||||
out.trackEncryptionBoxes[entryIndex] = sampleEntryEncryptionData.second;
|
||||
}
|
||||
parent.setPosition(childPosition);
|
||||
|
Loading…
x
Reference in New Issue
Block a user