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

Unified Diff: ppapi/c/private/pp_content_decryptor.h

Issue 1412323002: ppapi: Support up to 32 subsamples in PP_EncryptedBlockInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed changes in thunk Created 5 years, 2 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
Index: ppapi/c/private/pp_content_decryptor.h
diff --git a/ppapi/c/private/pp_content_decryptor.h b/ppapi/c/private/pp_content_decryptor.h
index cc6f0796fcd60c5aa2c0fc6e4285ced32421e872..3ccc3e70a3f02a8f844b96eddd9b8dd0a7a0f502 100644
--- a/ppapi/c/private/pp_content_decryptor.h
+++ b/ppapi/c/private/pp_content_decryptor.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* From private/pp_content_decryptor.idl modified Wed Sep 16 16:45:25 2015. */
+/* From private/pp_content_decryptor.idl modified Mon Oct 19 13:00:24 2015. */
#ifndef PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_
#define PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_
@@ -120,11 +120,16 @@ struct PP_EncryptedBlockInfo {
uint32_t iv_size;
/**
* Subsample information of the block to be decrypted.
+ *
+ * TODO(xhwang): We need to have a fixed size of |subsamples| here. Choose 32
+ * because it is sufficient for almost all real life scenarios. Note that in
+ * theory the number of subsamples could be larger than 32. If that happens,
+ * playback will fail.
*/
- struct PP_DecryptSubsampleDescription subsamples[16];
+ struct PP_DecryptSubsampleDescription subsamples[32];
uint32_t num_subsamples;
};
-PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_EncryptedBlockInfo, 240);
+PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_EncryptedBlockInfo, 368);
/**
* @}
*/

Powered by Google App Engine
This is Rietveld 408576698