mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
fa9d86fda5
Explicitly store the crypto scheme being used on our crypto structs to let us differentiate between cenc and cbcs data. In doing so remove mMode and replace mValid with IsEncrypted() for the following reasons: - Different modes within the existing schemes are not currently utilized by the spec: the scheme implies mode. Having a mode and a scheme could lead to confusion between the two. We can return mMode if ever needed by the spec -- possibly if the isProtected flag which we were tracking with mMode, is ever changed to be more than a bool in the spec. - mValid was typically used to check if these structs contained valid crypto data or not. With only one scheme this was often shorthand for 'IsEncrypted', but with multiple schemes what is considered valid data for one may not be for another. Do away with this and just explicitly have an 'IsEncrypted'. Differential Revision: https://phabricator.services.mozilla.com/D15874 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
HLSDecoder.cpp | ||
HLSDecoder.h | ||
HLSDemuxer.cpp | ||
HLSDemuxer.h | ||
HLSUtils.cpp | ||
HLSUtils.h | ||
moz.build |