diff options
Diffstat (limited to 'shared/core-utils/videos/bitrate.ts')
-rw-r--r-- | shared/core-utils/videos/bitrate.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/core-utils/videos/bitrate.ts b/shared/core-utils/videos/bitrate.ts index 3d4e47906..a6712f8a4 100644 --- a/shared/core-utils/videos/bitrate.ts +++ b/shared/core-utils/videos/bitrate.ts | |||
@@ -78,7 +78,7 @@ function calculateBitrate (options: { | |||
78 | 78 | ||
79 | for (const toTestResolution of resolutionsOrder) { | 79 | for (const toTestResolution of resolutionsOrder) { |
80 | if (toTestResolution <= resolution) { | 80 | if (toTestResolution <= resolution) { |
81 | return resolution * resolution * ratio * fps * bitPerPixel[toTestResolution] | 81 | return Math.floor(resolution * resolution * ratio * fps * bitPerPixel[toTestResolution]) |
82 | } | 82 | } |
83 | } | 83 | } |
84 | 84 | ||