Report correct decrypted video length to OMX codec
Change-Id: I8f869cfbb0ee74d03d1b0cb14c422c4b78b3692d related-to-bug: 5772593
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user