From f3a9c06f9244b14404ba6027352a66f1c2f1a333 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sun, 31 Jan 2021 17:44:24 +0100 Subject: [PATCH] Anti-recursing measures --- src/ext/lib/video-transform/Scaler.js | 59 ++++++++++-------------- src/ext/lib/video-transform/Stretcher.js | 16 +++++-- 2 files changed, 36 insertions(+), 39 deletions(-) diff --git a/src/ext/lib/video-transform/Scaler.js b/src/ext/lib/video-transform/Scaler.js index 10e3121..eb621aa 100644 --- a/src/ext/lib/video-transform/Scaler.js +++ b/src/ext/lib/video-transform/Scaler.js @@ -117,7 +117,7 @@ class Scaler { } if (ar.type === AspectRatio.Reset){ - return {xFactor: arCorrectionFactor, yFactor: arCorrectionFactor} + return {xFactor: arCorrectionFactor, yFactor: arCorrectionFactor, arCorrectionFactor: arCorrectionFactor} } // handle fuckie-wuckies @@ -151,13 +151,28 @@ class Scaler { yFactor: 1, actualWidth: 0, // width of the video (excluding pillarbox) when