Skip to content

Commit

Permalink
Correct RangeMax & RangeMin returns
Browse files Browse the repository at this point in the history
  • Loading branch information
emotion3459 authored Oct 23, 2024
1 parent 9e5a112 commit 548367b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vsexprtools/exprop.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def get_value(self, clip: vs.VideoNode, chroma: bool = False, range_in: ColorRan
return (val := get_peak_value(clip, range_in=ColorRange.FULL)) + (1 - (val <= 1.0))

if self is ExprToken.RangeMin:
return get_lowest_value(clip, chroma)
return get_lowest_value(clip, chroma, ColorRange.FULL)

if self is ExprToken.LumaRangeMin:
return get_lowest_value(clip, False)
Expand All @@ -84,7 +84,7 @@ def get_value(self, clip: vs.VideoNode, chroma: bool = False, range_in: ColorRan
return get_lowest_value(clip, True)

if self is ExprToken.RangeMax:
return get_peak_value(clip, chroma)
return get_peak_value(clip, chroma, ColorRange.FULL)

if self is ExprToken.LumaRangeMax:
return get_peak_value(clip, False)
Expand Down

0 comments on commit 548367b

Please sign in to comment.