Fix Linux build break
This commit is contained in:
parent
0735f164a8
commit
a97f6d90f4
1 changed files with 2 additions and 1 deletions
|
|
@ -5,6 +5,7 @@
|
||||||
#include <QTranslator>
|
#include <QTranslator>
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QLocale>
|
#include <QLocale>
|
||||||
|
#include <QtMath>
|
||||||
|
|
||||||
#include <QtDebug>
|
#include <QtDebug>
|
||||||
|
|
||||||
|
|
@ -300,7 +301,7 @@ int StreamingPreferences::getDefaultBitrate(int width, int height, int fps)
|
||||||
{
|
{
|
||||||
// Don't scale bitrate linearly beyond 60 FPS. It's definitely not a linear
|
// Don't scale bitrate linearly beyond 60 FPS. It's definitely not a linear
|
||||||
// bitrate increase for frame rate once we get to values that high.
|
// bitrate increase for frame rate once we get to values that high.
|
||||||
float frameRateFactor = (fps <= 60 ? fps : (sqrt(fps / 60.f) * 60.f)) / 30.f;
|
float frameRateFactor = (fps <= 60 ? fps : (qSqrt(fps / 60.f) * 60.f)) / 30.f;
|
||||||
|
|
||||||
// This table prefers 16:10 resolutions because they are
|
// This table prefers 16:10 resolutions because they are
|
||||||
// only slightly more pixels than the 16:9 equivalents, so
|
// only slightly more pixels than the 16:9 equivalents, so
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue