DO NOT MERGE Only pass whole clear frames to OEMCrypto_CopyBuffer

am: 58bad94991

* commit '58bad949913fc9311e9318d5d7a5f8f06a592367':
  DO NOT MERGE Only pass whole clear frames to OEMCrypto_CopyBuffer
This commit is contained in:
Rahul Frias
2016-03-04 18:20:31 +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);