mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-19 23:07:33 +09:00
[EME] Add support for sbgp and sgpd boxes occuring in the sampletable
This commit is contained in:
parent
1ce79cb51e
commit
a20d2c6462
4 changed files with 51 additions and 16 deletions
|
|
@ -349,11 +349,11 @@ MP4TrackDemuxer::GetNextSample()
|
|||
if (sample->mCrypto.mValid) {
|
||||
nsAutoPtr<MediaRawDataWriter> writer(sample->CreateWriter());
|
||||
writer->mCrypto.mMode = mInfo->mCrypto.mMode;
|
||||
writer->mCrypto.mIVSize = mInfo->mCrypto.mIVSize;
|
||||
|
||||
// The length of the key will be zero if no key was specified in the sample
|
||||
// information, meaning we should fall back to the default key.
|
||||
// Only use the default key parsed from the moov if we haven't already got
|
||||
// one from the sample group description.
|
||||
if (writer->mCrypto.mKeyId.Length() == 0) {
|
||||
writer->mCrypto.mIVSize = mInfo->mCrypto.mIVSize;
|
||||
writer->mCrypto.mKeyId.AppendElements(mInfo->mCrypto.mKeyId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue