gecko-dev/dom/media/webm
Bryce Van Dyk fa9d86fda5 Bug 1487416 - Replace mValid and mMode with mCryptoScheme for track and sample crypto structs. r=jya
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
2019-01-11 15:29:45 +00:00
..
EbmlComposer.cpp Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
EbmlComposer.h Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
NesteggPacketHolder.h Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
WebMBufferedParser.cpp Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
WebMBufferedParser.h Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
WebMDecoder.cpp Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
WebMDecoder.h Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
WebMDemuxer.cpp Bug 1487416 - Replace mValid and mMode with mCryptoScheme for track and sample crypto structs. r=jya 2019-01-11 15:29:45 +00:00
WebMDemuxer.h Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
WebMWriter.cpp Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
WebMWriter.h Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
moz.build Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium 2017-12-07 22:09:15 +01:00