aboutsummaryrefslogtreecommitdiff
path: root/src/FileAnalyzer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/FileAnalyzer.cpp')
-rw-r--r--src/FileAnalyzer.cpp6
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;
}