зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1074004 - Fix WebMioData implementation in TestWebMWriter. r=giles
This commit is contained in:
Родитель
6c48290b50
Коммит
a7457c180c
|
@ -240,8 +240,7 @@ static int webm_read(void* aBuffer, size_t aLength, void* aUserData)
|
|||
|
||||
// Check the read length.
|
||||
if (aLength > ioData->data.Length()) {
|
||||
NS_ERROR("Invalid read length");
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Check eos.
|
||||
|
@ -292,7 +291,7 @@ static int webm_seek(int64_t aOffset, int aWhence, void* aUserData)
|
|||
return -1;
|
||||
}
|
||||
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int64_t webm_tell(void* aUserData)
|
||||
|
|
Загрузка…
Ссылка в новой задаче