From 5fac071fbced11d2d71212f1ab8724ab31425f5d Mon Sep 17 00:00:00 2001 From: LightArrowsEXE Date: Tue, 24 Sep 2024 10:07:20 +0200 Subject: [PATCH] based_aa: Add callable check to prefilter --- vsaa/funcs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vsaa/funcs.py b/vsaa/funcs.py index a82140d..e924297 100644 --- a/vsaa/funcs.py +++ b/vsaa/funcs.py @@ -424,8 +424,10 @@ def based_aa( if isinstance(prefilter, vs.VideoNode): FormatsMismatchError.check(based_aa, func.work_clip, prefilter) ss_clip = prefilter - else: + elif callable(prefilter): ss_clip = prefilter(func.work_clip) + else: + raise CustomValueError('Invalid prefilter!', based_aa, prefilter) else: ss_clip = func.work_clip