From 9f430a53be016f8db2736d5d8111282660b50f4c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 12 Oct 2021 09:18:54 +0200 Subject: Fix bitrate tests --- shared/core-utils/videos/bitrate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shared') 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: { for (const toTestResolution of resolutionsOrder) { if (toTestResolution <= resolution) { - return resolution * resolution * ratio * fps * bitPerPixel[toTestResolution] + return Math.floor(resolution * resolution * ratio * fps * bitPerPixel[toTestResolution]) } } -- cgit v1.2.3