зеркало из 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.
|
// Check the read length.
|
||||||
if (aLength > ioData->data.Length()) {
|
if (aLength > ioData->data.Length()) {
|
||||||
NS_ERROR("Invalid read length");
|
return 0;
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check eos.
|
// Check eos.
|
||||||
|
@ -292,7 +291,7 @@ static int webm_seek(int64_t aOffset, int aWhence, void* aUserData)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int64_t webm_tell(void* aUserData)
|
static int64_t webm_tell(void* aUserData)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче