From f1613b950c7c3e3b51b8bd5ddc14bce865e4d320 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sun, 31 Jan 2021 01:18:35 +0100 Subject: [PATCH] fix a lil bit more --- src/ext/lib/video-transform/Stretcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ext/lib/video-transform/Stretcher.js b/src/ext/lib/video-transform/Stretcher.js index 3b19ddb..dde5657 100644 --- a/src/ext/lib/video-transform/Stretcher.js +++ b/src/ext/lib/video-transform/Stretcher.js @@ -270,7 +270,7 @@ squeezeFactor: ${squeezeFactor}`, '\nvideo', this.conf.video); return; } - const maxSafeStretchFactor = this.conf.resizer.scaler.calculateCrop(maxSafeAr).xFactor; + const maxSafeStretchFactor = this.conf.resizer.scaler.calculateCrop({type: AspectRatio.Fixed, ratio: maxSafeAr}).xFactor; console.info('Stretch factors before:', stretchFactors.xFactor, stretchFactors.yFactor, "max safe:", maxSafeStretchFactor, "max safe ar:", maxSafeAr);