1
0
Fork 0
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:
adavier 2020-05-18 11:20:34 +01:00 committed by GitHub
parent 632cb5bd8d
commit 3ecd8e45c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@ define(['globalize'], function (globalize) {
var videoWidth = options.videoWidth;
var videoHeight = options.videoHeight;
//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 width as if it were pillarboxed.
// 4:3 1440x1080 -> 1920x1080
if (videoWidth / videoHeight < 16 / 9) {
videoWidth = videoHeight * (16 / 9);