Fix bitrate tests

This commit is contained in:
Chocobozzz
2021-10-12 09:18:54 +02:00
parent 41085b1583
commit 9f430a53be
4 changed files with 17 additions and 11 deletions
+1 -1
View File
@@ -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])
}
}