diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-09 11:06:13 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-09 11:17:36 +0200 |
commit | 14d3270f363245d2c83fcc2ac109e39743b5627e (patch) | |
tree | 22a1d40675d372d53c35a4d7adf1fc1b4ceb1799 /server/helpers/utils.ts | |
parent | aa8b6df4a51c82eb91e6fd71a090b2128098af6b (diff) | |
download | PeerTube-14d3270f363245d2c83fcc2ac109e39743b5627e.tar.gz PeerTube-14d3270f363245d2c83fcc2ac109e39743b5627e.tar.zst PeerTube-14d3270f363245d2c83fcc2ac109e39743b5627e.zip |
Change how we handle resolution
It was an enum before, now we just use video height
Diffstat (limited to 'server/helpers/utils.ts')
-rw-r--r-- | server/helpers/utils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/utils.ts b/server/helpers/utils.ts index b74442ab0..3317dddc3 100644 --- a/server/helpers/utils.ts +++ b/server/helpers/utils.ts | |||
@@ -61,7 +61,7 @@ function computeResolutionsToTranscode (videoFileHeight: number) { | |||
61 | ] | 61 | ] |
62 | 62 | ||
63 | for (const resolution of resolutions) { | 63 | for (const resolution of resolutions) { |
64 | if (configResolutions[resolution.toString()] === true && videoFileHeight >= resolution) { | 64 | if (configResolutions[resolution.toString()] === true && videoFileHeight > resolution) { |
65 | resolutionsEnabled.push(resolution) | 65 | resolutionsEnabled.push(resolution) |
66 | } | 66 | } |
67 | } | 67 | } |