mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 814296 - Fix infinite loop when trying to play a zero-length MPEG4 file in omx-plugin r=doublec
This commit is contained in:
parent
dd8f473d13
commit
d81778f9b0
@ -84,6 +84,11 @@ ssize_t MediaStreamSource::readAt(MOZ_STAGEFRIGHT_OFF_T offset, void *data, size
|
||||
if (!mPluginHost->Read(mDecoder, ptr, offset, todo, &bytesRead)) {
|
||||
return ERROR_IO;
|
||||
}
|
||||
|
||||
if (bytesRead == 0) {
|
||||
return size - todo;
|
||||
}
|
||||
|
||||
offset += bytesRead;
|
||||
todo -= bytesRead;
|
||||
ptr += bytesRead;
|
||||
|
Loading…
Reference in New Issue
Block a user