fix a lil bit more

This commit is contained in:
Tamius Han 2021-01-31 01:18:35 +01:00
parent ee9599d040
commit f1613b950c

View File

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