Chromium Code Reviews| Index: media/formats/mp4/box_definitions.h |
| diff --git a/media/formats/mp4/box_definitions.h b/media/formats/mp4/box_definitions.h |
| index 01138801bea9d590af1327fe37527646fb0c8fce..cc659c8b728fa45ee74159c942ce894b3545f105 100644 |
| --- a/media/formats/mp4/box_definitions.h |
| +++ b/media/formats/mp4/box_definitions.h |
| @@ -20,6 +20,7 @@ |
| #include "media/formats/mp4/avc.h" |
| #include "media/formats/mp4/box_reader.h" |
| #include "media/formats/mp4/fourccs.h" |
| +#include "media/media_features.h" |
| namespace media { |
| namespace mp4 { |
| @@ -129,6 +130,12 @@ struct MEDIA_EXPORT TrackEncryption : Box { |
| bool is_encrypted; |
|
ddorwin
2016/05/27 23:05:59
As KQ noted, initialize all the values consistentl
dougsteed
2016/06/09 22:38:27
Done.
|
| uint8_t default_iv_size; |
| std::vector<uint8_t> default_kid; |
| +#if BUILDFLAG(ENABLE_CBCS_ENCRYPTION_SCHEME) |
| + uint8_t default_crypt_byte_block = 0; |
| + uint8_t default_skip_byte_block = 0; |
| + uint8_t default_constant_iv_size = 0; |
| + uint8_t default_constant_iv[16]; |
| +#endif |
| }; |
| struct MEDIA_EXPORT SchemeInfo : Box { |
| @@ -143,6 +150,8 @@ struct MEDIA_EXPORT ProtectionSchemeInfo : Box { |
| OriginalFormat format; |
| SchemeType type; |
| SchemeInfo info; |
| + |
| + bool HasSupportedScheme() const; |
| }; |
| struct MEDIA_EXPORT MovieHeader : Box { |
| @@ -282,10 +291,17 @@ struct MEDIA_EXPORT CencSampleEncryptionInfoEntry { |
| CencSampleEncryptionInfoEntry(); |
| CencSampleEncryptionInfoEntry(const CencSampleEncryptionInfoEntry& other); |
| ~CencSampleEncryptionInfoEntry(); |
| + bool Parse(BoxReader* reader); |
| bool is_encrypted; |
| uint8_t iv_size; |
| std::vector<uint8_t> key_id; |
| +#if BUILDFLAG(ENABLE_CBCS_ENCRYPTION_SCHEME) |
| + uint8_t crypt_byte_block = 0; |
| + uint8_t skip_byte_block = 0; |
| + uint8_t constant_iv_size = 0; |
| + uint8_t constant_iv[16]; |
| +#endif |
| }; |
| struct MEDIA_EXPORT SampleGroupDescription : Box { // 'sgpd'. |