Skip to content

Commit

Permalink
Use ColorRange.from_param_or_video
Browse files Browse the repository at this point in the history
  • Loading branch information
Setsugennoao committed Nov 7, 2023
1 parent eddf761 commit 01f9f0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vsdeband/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def guided_filter(
downscaler = Scaler.ensure_obj(downscaler, guided_filter)
upscaler = Scaler.ensure_obj(upscaler, guided_filter)

range_in = ColorRange.from_param(range_in, guided_filter) or ColorRange.from_video(clip)
range_in = ColorRange.from_param_or_video(range_in, clip, False, guided_filter)

width, height = clip.width, clip.height

Expand Down
2 changes: 1 addition & 1 deletion vsdeband/funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def guided_deband(

planes = normalize_planes(clip, planes)

range_in = ColorRange.from_param(range_in) or ColorRange.from_video(clip)
range_in = ColorRange.from_param_or_video(range_in, clip)

rad = fallback(rad, ceil(clip.height / 540))

Expand Down

0 comments on commit 01f9f0d

Please sign in to comment.