diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-11-29 17:54:12 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-11-29 17:54:12 +0100 |
commit | 5303ca008e760e4e4707c0816449fb83f278426b (patch) | |
tree | d42e4d2fdcfc55e3ff2ad7135dba7b9ba2078e1b /src/FileAnalyzer.cpp | |
parent | 94152da2ef18a673a996e3d5cfb3780a8f5f7feb (diff) |
Matrix: set filesize limit to int64 and remove 300mb limit for non-image files
Diffstat (limited to 'src/FileAnalyzer.cpp')
-rw-r--r-- | src/FileAnalyzer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/FileAnalyzer.cpp b/src/FileAnalyzer.cpp index 65c33b5..361211f 100644 --- a/src/FileAnalyzer.cpp +++ b/src/FileAnalyzer.cpp @@ -240,9 +240,9 @@ namespace QuickMedia { dimensions = std::nullopt; duration_seconds = std::nullopt; - struct stat stat; + struct stat64 stat; memset(&stat, 0, sizeof(stat)); - if(fstat(fileno(file), &stat) == -1) { + if(fstat64(fileno(file), &stat) == -1) { perror(filepath); fclose(file); return false; @@ -315,7 +315,7 @@ namespace QuickMedia { return content_type; } - size_t FileAnalyzer::get_file_size() const { + int64_t FileAnalyzer::get_file_size() const { return file_size; } |