Bug 1074004 - Fix WebMioData implementation in TestWebMWriter. r=giles

This commit is contained in:
Matthew Gregan 2014-09-29 13:13:21 +13:00
Родитель 6c48290b50
Коммит a7457c180c
2 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -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)

0
media/libcubeb/update.sh Normal file → Executable file
Просмотреть файл