diff --git a/src/ext/lib/video-transform/Scaler.js b/src/ext/lib/video-transform/Scaler.js index 1da4125..d907c33 100644 --- a/src/ext/lib/video-transform/Scaler.js +++ b/src/ext/lib/video-transform/Scaler.js @@ -91,10 +91,15 @@ class Scaler { const compensatedStreamAr = streamAr * heightCompensationFactor; let arCorrectionFactor = 1; - if (playerAr < compensatedStreamAr) { - arCorrectionFactor = this.conf.player.dimensions.width / this.conf.video.offsetWidth; - } else if (ar.type !== AspectRatio.Reset) { - arCorrectionFactor /= heightCompensationFactor; + + if (ar.type !== AspectRatio.FitHeight) { + if (playerAr < compensatedStreamAr) { + console.warn('AR CORRECT FACTOR') + arCorrectionFactor = this.conf.player.dimensions.width / this.conf.video.offsetWidth; + } else if (ar.type !== AspectRatio.Reset) { + console.warn('ANTI-HEIGHTCOMPENSATION') + arCorrectionFactor /= heightCompensationFactor; + } } if(!this.conf.video){ diff --git a/src/ext/lib/video-transform/Stretcher.js b/src/ext/lib/video-transform/Stretcher.js index 24d649d..ea9306e 100644 --- a/src/ext/lib/video-transform/Stretcher.js +++ b/src/ext/lib/video-transform/Stretcher.js @@ -221,10 +221,10 @@ squeezeFactor: ${squeezeFactor}`, '\nvideo', this.conf.video); } } - const arCorrectionFactor = this.getArCorrectionFactor(); + // const arCorrectionFactor = this.getArCorrectionFactor(); // correct factors, unless we're trying to reset - stretchFactors.xFactor *= arCorrectionFactor; - stretchFactors.yFactor *= arCorrectionFactor; + // stretchFactors.xFactor *= arCorrectionFactor; + // stretchFactors.yFactor *= arCorrectionFactor; stretchFactors.arCorrectionFactor = this.getArCorrectionFactor(); return stretchFactors;