Merge "CryptoSession: handle 0-length buffer in DecryptSample" into rvc-dev am: e59339ed6d am: 94108cdbe8 am: 4d3ebc6b87
Change-Id: I5a34bf4824a7eb8b382c9eba314de0d393736c8e
This commit is contained in:
@@ -2693,6 +2693,7 @@ OEMCryptoResult CryptoSession::DecryptSample(
|
||||
|
||||
if (sts == OEMCrypto_ERROR_BUFFER_TOO_LARGE) {
|
||||
// Fall back to sending each subsample region individually
|
||||
sts = OEMCrypto_SUCCESS;
|
||||
OEMCrypto_SampleDescription fake_sample = sample;
|
||||
for (size_t i = 0; i < sample.subsamples_length; ++i) {
|
||||
const OEMCrypto_SubSampleDescription& original_subsample =
|
||||
|
||||
Reference in New Issue
Block a user