mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 10:19:35 +02:00
Change how we handle resolution
It was an enum before, now we just use video height
This commit is contained in:
parent
aa8b6df4a5
commit
14d3270f36
18 changed files with 266 additions and 230 deletions
|
@ -61,7 +61,7 @@ function computeResolutionsToTranscode (videoFileHeight: number) {
|
|||
]
|
||||
|
||||
for (const resolution of resolutions) {
|
||||
if (configResolutions[resolution.toString()] === true && videoFileHeight >= resolution) {
|
||||
if (configResolutions[resolution.toString()] === true && videoFileHeight > resolution) {
|
||||
resolutionsEnabled.push(resolution)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue