From 7fd28616aa03433b463d3b1a1f2a1d3ea7ea1596 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Wed, 12 May 2021 00:01:40 +0200 Subject: [PATCH] Fix incorrect stretch with fix-source stretch --- src/ext/lib/video-transform/Stretcher.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/ext/lib/video-transform/Stretcher.ts b/src/ext/lib/video-transform/Stretcher.ts index 4075d3b..bc3a166 100644 --- a/src/ext/lib/video-transform/Stretcher.ts +++ b/src/ext/lib/video-transform/Stretcher.ts @@ -134,12 +134,7 @@ videoAr: ${streamAr} playerAr: ${playerAr} squeezeFactor: ${squeezeFactor}`, '\nvideo', this.conf.video); - - if (this.fixedStretchRatio < playerAr) { - postCropStretchFactors.xFactor *= squeezeFactor; - } else { - postCropStretchFactors.yFactor *= squeezeFactor; - } + postCropStretchFactors.xFactor *= squeezeFactor; this.logger.log('info', 'stretcher', `[Stretcher::applyStretchFixedSource] here's what we'll apply:\npostCropStretchFactors: x=${postCropStretchFactors.x} y=${postCropStretchFactors.y}`);