diff --git a/vsexprtools/exprop.py b/vsexprtools/exprop.py index 5802323..d7db8e5 100644 --- a/vsexprtools/exprop.py +++ b/vsexprtools/exprop.py @@ -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) @@ -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)