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:
@@ -665,7 +665,9 @@ CdmResponseType CryptoSession::Decrypt(const CdmDecryptionParameters& params) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
OEMCryptoResult sts = OEMCrypto_ERROR_NOT_IMPLEMENTED;
|
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_,
|
sts = OEMCrypto_CopyBuffer(requested_security_level_,
|
||||||
params.encrypt_buffer, params.encrypt_length,
|
params.encrypt_buffer, params.encrypt_length,
|
||||||
&buffer_descriptor, params.subsample_flags);
|
&buffer_descriptor, params.subsample_flags);
|
||||||
|
|||||||
Reference in New Issue
Block a user