Fix incorrect stretch with fix-source stretch

This commit is contained in:
Tamius Han 2021-05-12 00:01:40 +02:00
parent fba6a8d604
commit 7fd28616aa

View File

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