Skip to content

Commit

Permalink
vfm: Ignore y if integer passed
Browse files Browse the repository at this point in the history
  • Loading branch information
LightArrowsEXE committed Sep 14, 2024
1 parent bfb4490 commit 0cbcfd5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions vsdeinterlace/ivtc.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,8 @@ def vfm(
else:
vfm_kwargs |= dict(blockx=block[0], blocky=block[1])

if y := kwargs.pop('y', None):
if isinstance(y, int):
vfm_kwargs |= dict(y0=y, y1=y)
else:
vfm_kwargs |= dict(y0=y[0], y1=y[1])
if (y := kwargs.pop('y', None)) and not isinstance(y, int):
vfm_kwargs |= dict(y0=y[0], y1=y[1])

if not kwargs.get('clip2', None) and func.work_clip.format is not clip.format:
vfm_kwargs |= dict(clip2=clip)
Expand Down

0 comments on commit 0cbcfd5

Please sign in to comment.