diff options
author | trav90 <travawine@palemoon.org> | 2018-07-25 22:39:12 -0500 |
---|---|---|
committer | trav90 <travawine@palemoon.org> | 2018-07-25 22:39:12 -0500 |
commit | 00703f6105e2ccee401fb56e63baf332fd41df61 (patch) | |
tree | f617de9b9cda4e0697efd4d2cd1c13290f249c49 /dom | |
parent | 3a0520bb1c83e6ea0ee51e8fcb3c265de3c77b10 (diff) | |
download | uxp-00703f6105e2ccee401fb56e63baf332fd41df61.tar.gz |
[EME] Add support for sbgp and sgpd boxes occuring in the sampletable
Diffstat (limited to 'dom')
-rw-r--r-- | dom/media/fmp4/MP4Demuxer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dom/media/fmp4/MP4Demuxer.cpp b/dom/media/fmp4/MP4Demuxer.cpp index a871d73b9f..646897468a 100644 --- a/dom/media/fmp4/MP4Demuxer.cpp +++ b/dom/media/fmp4/MP4Demuxer.cpp @@ -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); } } |