From 0cbcfd5a12e7ac2b8ec95fcf3f73557f62433481 Mon Sep 17 00:00:00 2001 From: LightArrowsEXE Date: Sat, 14 Sep 2024 23:29:22 +0200 Subject: [PATCH] vfm: Ignore `y` if integer passed --- vsdeinterlace/ivtc.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/vsdeinterlace/ivtc.py b/vsdeinterlace/ivtc.py index af403fd..909d330 100644 --- a/vsdeinterlace/ivtc.py +++ b/vsdeinterlace/ivtc.py @@ -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)