Skip to content

Commit

Permalink
Fix in/out dar in KeepArScaler
Browse files Browse the repository at this point in the history
  • Loading branch information
Setsugennoao committed Jun 24, 2024
1 parent e7a5292 commit 44a7afc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vskernels/kernels/complex.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ def _handle_crop_resize_kwargs( # type: ignore[override]
src_sar = float(_from_param(Sar, sar, Sar(1, 1)) or Sar.from_clip(clip))
out_sar = None

src_dar = float(Dar.from_size(clip, False))
out_dar = float(_from_param(Dar, dar, src_dar) or Dar.from_size(width, height)) # type: ignore
src_dar = float(_from_param(Dar, dar, Dar.from_size(clip, False)) or Dar.from_size(clip, False))
out_dar = float(Dar.from_size(width, height))

if src_sar != 1.0:
if src_sar > 1.0:
Expand Down

0 comments on commit 44a7afc

Please sign in to comment.