aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/core-utils
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-10-12 13:50:48 +0200
committerChocobozzz <me@florianbigard.com>2021-10-12 13:50:48 +0200
commit10ef089102f2225c5ec3ed426bc612e4f2bc8655 (patch)
treea92171db9114792a363e360bfb645c13d9ea4234 /shared/core-utils
parentc80e458afb63915163467fe9b3b147b3b4e4657d (diff)
parent3c25d37aef66b125e8c66d38b04eb763f1b17bc6 (diff)
downloadPeerTube-10ef089102f2225c5ec3ed426bc612e4f2bc8655.tar.gz
PeerTube-10ef089102f2225c5ec3ed426bc612e4f2bc8655.tar.zst
PeerTube-10ef089102f2225c5ec3ed426bc612e4f2bc8655.zip
Merge branch 'release/3.4.0' into develop
Diffstat (limited to 'shared/core-utils')
-rw-r--r--shared/core-utils/videos/bitrate.ts2
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