aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-11-24 07:46:35 +0100
committerdec05eba <dec05eba@protonmail.com>2023-11-24 07:46:35 +0100
commita2707cf5fae16566257e290ec874701591165423 (patch)
tree7586e93ccaca896185b34e770a928993c3e95f2f /src
parent2f60f4c109f1bcc748d5f0d937476e8708a4073b (diff)
Fix build on 32-bit systems
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 6ab0ef1..e7aa115 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2302,7 +2302,7 @@ int main(int argc, char **argv) {
const double this_video_frame_time = clock_get_monotonic_seconds();
const int64_t expected_frames = std::round((this_video_frame_time - start_time_pts) / target_fps);
- const int num_frames = framerate_mode == FramerateMode::CONSTANT ? std::max(0L, expected_frames - video_pts_counter) : 1;
+ const int num_frames = framerate_mode == FramerateMode::CONSTANT ? std::max((int64_t)0LL, expected_frames - video_pts_counter) : 1;
if(num_frames > 0) {
gsr_capture_capture(capture, frame);