am 4fffa0ff: Fixed mediacodec mode\'s fatal error when eos is encountered.

* commit '4fffa0ff6ab7777db634b3f0cb9b38525a801169':
  Fixed mediacodec mode's fatal error when eos is encountered.
This commit is contained in:
Edwin Wong
2012-09-26 22:50:05 -07:00
committed by Android Git Automerger

View File

@@ -120,6 +120,9 @@ ssize_t WVCryptoPlugin::decrypt(
}
//ALOGD("size[%d]=%d", i, srcSize);
if (srcSize == 0) {
continue; // segment size is zero, do not call decrypt
}
#ifdef REQUIRE_SECURE_BUFFERS
// decrypt using OEMCrypto API, used for L1 devices