Skip to content

Commit

Permalink
MatchBasedOrphanQTGMCStrategy: Fix replace_ranges clips
Browse files Browse the repository at this point in the history
  • Loading branch information
LightArrowsEXE committed Jan 31, 2025
1 parent de7d9a3 commit 580deb5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vswobbly/process/strategies/orphans.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ def apply(self, clip: vs.VideoNode, wobbly_parsed: WobblyParser) -> vs.VideoNode
deint = self._qtgmc(QTGMC, clip, **qtgmc_kwargs)
deint_b = deint[wobbly_parsed.field_order.is_tff::2]

orphans_b = wobbly_parsed.orphan_frames.find_matches('b')
deint = replace_ranges(deint, deint_b, [orphan.frame for orphan in orphans_b])
deint = replace_ranges(
clip, deint_b,
[orphan.frame for orphan in wobbly_parsed.orphan_frames.find_matches('b')]
)

return deint

Expand Down

0 comments on commit 580deb5

Please sign in to comment.