Skip to content

Commit f2e6e20

Browse files
committed
PD2V: Ensure clip is a VideoNode
1 parent 005c7f3 commit f2e6e20

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pvsfunc/pd2v.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ def deinterlace(self, kernel: functools.partial, verbose=False):
8484
mess with the clip data manually after sending it to this class unless you also
8585
update the changes on the flags. For an example of this see ceil() and floor().
8686
"""
87+
if not isinstance(self.clip, vs.VideoNode):
88+
raise TypeError("This is not a clip")
8789
if not callable(kernel):
8890
raise ValueError("Invalid kernel, must be a callable")
8991
if len(kernel.args) > 1:

0 commit comments

Comments
 (0)