From ea186d0aeb4289376383acf4fb87bc8d251e00bf Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sun, 31 Jan 2021 23:32:32 +0100 Subject: [PATCH] always return videoDimensions --- src/ext/lib/video-transform/Scaler.js | 4 +++- src/ext/lib/video-transform/Stretcher.js | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ext/lib/video-transform/Scaler.js b/src/ext/lib/video-transform/Scaler.js index eb621aa..5a09846 100644 --- a/src/ext/lib/video-transform/Scaler.js +++ b/src/ext/lib/video-transform/Scaler.js @@ -146,7 +146,7 @@ class Scaler { this.logger.log('info', 'scaler', "[Scaler::calculateCrop] ar is " ,ar.ratio, ", file ar is", streamAr, ", this.conf.player.dimensions are ", this.conf.player.dimensions.width, "×", this.conf.player.dimensions.height, "| obj:", this.conf.player.dimensions); - var videoDimensions = { + const videoDimensions = { xFactor: 1, yFactor: 1, actualWidth: 0, // width of the video (excluding pillarbox) when