am f66301bd: Report correct decrypted video length to OMX codec
* commit 'f66301bddb27f6dc5abb0fa0b4d368d7ff6c6840': Report correct decrypted video length to OMX codec
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