解决win32下大文件点播不了问题 (#1188)

This commit is contained in:
Dw9
2021-10-26 20:35:55 +08:00
committed by GitHub
parent 434d6a73a1
commit bb9695a247
2 changed files with 11 additions and 11 deletions

View File

@@ -200,11 +200,11 @@ int MP4FileDisk::onWrite(const void *data, size_t bytes) {
return bytes == fwrite(data, 1, bytes, _file.get()) ? 0 : ferror(_file.get());
}
int MP4FileDisk::onSeek(size_t offset) {
int MP4FileDisk::onSeek(uint64_t offset) {
return fseek64(_file.get(), offset, SEEK_SET);
}
size_t MP4FileDisk::onTell() {
uint64_t MP4FileDisk::onTell() {
return ftell64(_file.get());
}
@@ -221,11 +221,11 @@ size_t MP4FileMemory::fileSize() const{
return _memory.size();
}
size_t MP4FileMemory::onTell(){
uint64_t MP4FileMemory::onTell(){
return _offset;
}
int MP4FileMemory::onSeek(size_t offset){
int MP4FileMemory::onSeek(uint64_t offset){
if (offset > _memory.size()) {
return -1;
}