From 7288c7f4bb6bf6783f8bd982f88f7f94814d7065 Mon Sep 17 00:00:00 2001 From: emotion3459 <176516814+emotion3459@users.noreply.github.com> Date: Thu, 5 Sep 2024 10:27:12 -0400 Subject: [PATCH] Swap masking order --- vsaa/funcs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vsaa/funcs.py b/vsaa/funcs.py index 13b6d8c..503e108 100644 --- a/vsaa/funcs.py +++ b/vsaa/funcs.py @@ -411,7 +411,7 @@ def based_aa( aa = downscaler.scale(aa_x, func.work_clip.width, func.work_clip.height) no_aa = downscaler.scale(ss_y.std.Transpose(), func.work_clip.width, func.work_clip.height) - aa_merge = func.work_clip.std.MaskedMerge(aa, lpmask) - aa_merge = norm_expr([func.work_clip, aa_merge, no_aa], "y z = x y ?") + aa_merge = norm_expr([func.work_clip, aa, no_aa], "y z = x y ?") + aa_merge = func.work_clip.std.MaskedMerge(aa_merge, lpmask) return func.return_clip(aa_merge)