summaryrefslogtreecommitdiffstats
path: root/modules/webm/video_stream_webm.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-05-17 16:02:12 +0200
committerGitHub <noreply@github.com>2021-05-17 16:02:12 +0200
commitb0a51bf9fe6b35cf4e2a76ec067d76349ca9b75c (patch)
tree905b5c483a9dab81bc19fbfe9893e17f02506720 /modules/webm/video_stream_webm.cpp
parent45e0f9fd523cb861b8e432966577d7c4608564ad (diff)
parent469fa47e0646d8f2ca3237dede8a04568039c7c6 (diff)
downloadredot-engine-b0a51bf9fe6b35cf4e2a76ec067d76349ca9b75c.tar.gz
Merge pull request #48768 from akien-mga/file-access-64-bit-4.0
Make all file access 64-bit (`uint64_t`)
Diffstat (limited to 'modules/webm/video_stream_webm.cpp')
-rw-r--r--modules/webm/video_stream_webm.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/webm/video_stream_webm.cpp b/modules/webm/video_stream_webm.cpp
index a6b64b342e..15bf9dbf2d 100644
--- a/modules/webm/video_stream_webm.cpp
+++ b/modules/webm/video_stream_webm.cpp
@@ -62,10 +62,10 @@ public:
virtual int Read(long long pos, long len, unsigned char *buf) {
if (file) {
- if (file->get_position() != (size_t)pos) {
+ if (file->get_position() != (uint64_t)pos) {
file->seek(pos);
}
- if (file->get_buffer(buf, len) == len) {
+ if (file->get_buffer(buf, len) == (uint64_t)len) {
return 0;
}
}
@@ -74,7 +74,7 @@ public:
virtual int Length(long long *total, long long *available) {
if (file) {
- const size_t len = file->get_len();
+ const uint64_t len = file->get_len();
if (total) {
*total = len;
}