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);