mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Update src/components/qualityOptions.js
Co-authored-by: Julien Machiels <julien.machiels@protonmail.com>
This commit is contained in:
parent
146e592a6d
commit
632cb5bd8d
1 changed files with 2 additions and 2 deletions
|
@ -9,8 +9,8 @@ define(['globalize'], function (globalize) {
|
||||||
|
|
||||||
//If the aspect ratio is less than 16/9 (1.77), set the height as if it were pillerboxed.
|
//If the aspect ratio is less than 16/9 (1.77), set the height as if it were pillerboxed.
|
||||||
// 4:3 1440x1080 -> 1920x1080
|
// 4:3 1440x1080 -> 1920x1080
|
||||||
if (videoWidth/videoHeight < 16/9) {
|
if (videoWidth / videoHeight < 16 / 9) {
|
||||||
videoWidth=videoHeight*(16/9);
|
videoWidth = videoHeight * (16 / 9);
|
||||||
}
|
}
|
||||||
|
|
||||||
var maxAllowedWidth = videoWidth || 4096;
|
var maxAllowedWidth = videoWidth || 4096;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue