am: 828d729
* commit '828d729e243a9c4ccb3c625a1bc232b303cb5910':
Don't Validate Crypto Mode for Unencrypted Decrypt
Change-Id: Ia8d6711b2f49b9c25698ed7a6c1103fbfeb1a09b
This commit is contained in:
@@ -678,7 +678,7 @@ CdmResponseType CryptoSession::Decrypt(const CdmDecryptionParameters& params) {
|
||||
params.encrypt_buffer, params.encrypt_length,
|
||||
&buffer_descriptor, params.subsample_flags);
|
||||
}
|
||||
if (params.cipher_mode != cipher_mode_) {
|
||||
if (params.is_encrypted && params.cipher_mode != cipher_mode_) {
|
||||
return INCORRECT_CRYPTO_MODE;
|
||||
}
|
||||
if (params.is_encrypted || sts == OEMCrypto_ERROR_NOT_IMPLEMENTED) {
|
||||
|
||||
Reference in New Issue
Block a user