Don't set BufferType to clear for non-encrypted buffers
When non-encrypted buffers are sent to OEMCrypto_DecryptCTR, the cdm is overriding the buffer type to be non-secure. This is incorrect, the encrypted state is not the same as the buffer protection level. This change removes the special case override that should not be there. bug: 8621521 Change-Id: I705b1dc82b393305b9e6bdcb524d6b8126f58d3d
This commit is contained in:
@@ -401,9 +401,6 @@ CdmResponseType CryptoSession::Decrypt(bool is_encrypted,
|
|||||||
OEMCrypto_DestBufferDesc buffer_descriptor;
|
OEMCrypto_DestBufferDesc buffer_descriptor;
|
||||||
buffer_descriptor.type = destination_buffer_type_;
|
buffer_descriptor.type = destination_buffer_type_;
|
||||||
|
|
||||||
if (!is_encrypted)
|
|
||||||
buffer_descriptor.type = OEMCrypto_BufferType_Clear;
|
|
||||||
|
|
||||||
switch (buffer_descriptor.type) {
|
switch (buffer_descriptor.type) {
|
||||||
case OEMCrypto_BufferType_Clear:
|
case OEMCrypto_BufferType_Clear:
|
||||||
buffer_descriptor.buffer.clear.address =
|
buffer_descriptor.buffer.clear.address =
|
||||||
|
|||||||
Reference in New Issue
Block a user