From d76675f4b14bb5158669dfd55a4c9d042756c84e Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 2 Sep 2023 20:05:27 -0500 Subject: [PATCH] Fix handling of frame rates below 30 FPS --- app/settings/streamingpreferences.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/settings/streamingpreferences.cpp b/app/settings/streamingpreferences.cpp index bc455943..597b9d23 100644 --- a/app/settings/streamingpreferences.cpp +++ b/app/settings/streamingpreferences.cpp @@ -300,7 +300,7 @@ int StreamingPreferences::getDefaultBitrate(int width, int height, int fps) { // Don't scale bitrate further beyond 90 FPS. It's definitely not a linear // bitrate increase for frame rate once we get to values that high. - float frameRateFactor = qMin(90, fps) / 30; + float frameRateFactor = qMin(90, fps) / 30.f; // This table prefers 16:10 resolutions because they are // only slightly more pixels than the 16:9 equivalents, so