DO NOT MERGE Only pass whole clear frames to OEMCrypto_CopyBuffer am: 58bad94991

am: 1eeb1ee359

* commit '1eeb1ee3590095a6cc39b774e33ac6dd26b18f9c':
  DO NOT MERGE Only pass whole clear frames to OEMCrypto_CopyBuffer
This commit is contained in:
Rahul Frias
2016-03-04 18:22:33 +00:00
committed by android-build-merger

View File

@@ -665,7 +665,9 @@ CdmResponseType CryptoSession::Decrypt(const CdmDecryptionParameters& params) {
}
OEMCryptoResult sts = OEMCrypto_ERROR_NOT_IMPLEMENTED;
if (!params.is_encrypted) {
if (!params.is_encrypted &&
params.subsample_flags ==
(OEMCrypto_FirstSubsample | OEMCrypto_LastSubsample)) {
sts = OEMCrypto_CopyBuffer(requested_security_level_,
params.encrypt_buffer, params.encrypt_length,
&buffer_descriptor, params.subsample_flags);