Bug 1050060 - Fix 64 bit file offset in MP4 reader; r=edwin

This commit is contained in:
Anthony Jones 2014-08-13 17:13:28 +12:00
parent fa358b339a
commit 4c33e4d4ac

View File

@ -78,7 +78,7 @@ public:
uint32_t sum = 0;
uint32_t bytesRead = 0;
do {
uint32_t offset = aOffset + sum;
uint64_t offset = aOffset + sum;
char* buffer = reinterpret_cast<char*>(aBuffer) + sum;
uint32_t toRead = aCount - sum;
nsresult rv = mResource->ReadAt(offset, buffer, toRead, &bytesRead);