Skip to content

Commit

Permalink
based_aa: Add callable check to prefilter
Browse files Browse the repository at this point in the history
  • Loading branch information
LightArrowsEXE committed Sep 24, 2024
1 parent 85c0cb4 commit 5fac071
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vsaa/funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5fac071

Please sign in to comment.