mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2026-09-03 20:53:09 -05:00
Merge branch 'release/3.4.0' into develop
This commit is contained in:
@@ -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])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user