Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(482)

Unified Diff: media/formats/mp4/box_definitions.h

Issue 1149023002: Combine 'pssh' parsing routines. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: size_t Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/cdm/cenc_utils_unittest.cc ('k') | media/formats/mp4/box_definitions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/formats/mp4/box_definitions.h
diff --git a/media/formats/mp4/box_definitions.h b/media/formats/mp4/box_definitions.h
index 026effe6b5fbd3fe036e63426400c03f288802a5..2dfab63b5d17c06ad1fc0dd56151ebd5057a2249 100644
--- a/media/formats/mp4/box_definitions.h
+++ b/media/formats/mp4/box_definitions.h
@@ -44,13 +44,23 @@ struct MEDIA_EXPORT FileType : Box {
uint32 minor_version;
};
+// If only copying the 'pssh' boxes, use ProtectionSystemSpecificHeader.
+// If access to the individual fields is needed, use
+// FullProtectionSystemSpecificHeader.
struct MEDIA_EXPORT ProtectionSystemSpecificHeader : Box {
DECLARE_BOX_METHODS(ProtectionSystemSpecificHeader);
- std::vector<uint8> system_id;
std::vector<uint8> raw_box;
};
+struct MEDIA_EXPORT FullProtectionSystemSpecificHeader : Box {
+ DECLARE_BOX_METHODS(FullProtectionSystemSpecificHeader);
+
+ std::vector<uint8> system_id;
+ std::vector<std::vector<uint8>> key_ids;
+ std::vector<uint8> data;
+};
+
struct MEDIA_EXPORT SampleAuxiliaryInformationOffset : Box {
DECLARE_BOX_METHODS(SampleAuxiliaryInformationOffset);
« no previous file with comments | « media/cdm/cenc_utils_unittest.cc ('k') | media/formats/mp4/box_definitions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698