Report correct decrypted video length to OMX codec

Change-Id: I8f869cfbb0ee74d03d1b0cb14c422c4b78b3692d
related-to-bug: 5772593
This commit is contained in:
Jeff Tinker
2011-12-16 07:18:32 -08:00
parent 444dc2a845
commit f66301bddb

View File

@@ -322,6 +322,12 @@ status_t WVMMediaSource::read(MediaBuffer **buffer, const ReadOptions *options)
return status;
}
#ifdef REQUIRE_SECURE_BUFFERS
if (mESSelector == WV_EsSelector_Video) {
bytesRead = sDecryptContext[mESSelector].mOffset;
}
#endif
if (bytesRead == 0) {
if (retryCount++ >= retryLimit) {
// If no data received within the retry limit, return ERROR_IO