Skip to content

Commit

Permalink
fix order of blurframes
Browse files Browse the repository at this point in the history
  • Loading branch information
atzuur committed Apr 1, 2024
1 parent 5a73119 commit 7fbf7b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions target/scripts/blending.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
def average(clip: vs.VideoNode, weights: list[float], divisor: float | None = None):
def get_offset_clip(offset: int) -> vs.VideoNode:
if offset > 0:
return clip[0] * offset + clip[:-offset]
return clip[offset:] + clip[-1] * offset
elif offset < 0:
return clip[-offset:] + clip[-1] * (-offset)
return clip[0] * -offset + clip[:offset]
else:
return clip

Expand Down

0 comments on commit 7fbf7b5

Please sign in to comment.