Skip to content

Commit 110b4a3

Browse files
committed
Check for VIVTC's _Combed flag in PD2V deinterlace
This makes it so if VIVTC VFM or such was used, then we have more information to detect (now recovered) progressive frames.
1 parent 3e65fb2 commit 110b4a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pvsfunc/pd2v.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def deinterlace(self, kernel: functools.partial, verbose=False):
102102

103103
def _d(n: int, f: vs.VideoFrame, c: vs.VideoNode, tff: vs.VideoNode, bff: vs.VideoNode, ff: int):
104104
# frame marked as progressive in flags by D2V, skip deinterlacing
105-
if f.props["PVSFlagProgressiveFrame"]:
105+
if f.props["PVSFlagProgressiveFrame"] or f.props.get("_Combed") == 0:
106106
rc = core.std.Interleave([c] * ff) if ff > 1 else c # duplicate if not a single-rate fps output
107107
if rc.format and tff.format and rc.format.id != tff.format.id:
108108
rc = core.resize.Point(rc, format=tff.format.id)

0 commit comments

Comments
 (0)