Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cbusillo committed Jul 1, 2024
1 parent 72f6834 commit 8e7965f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions bd_to_avp/modules/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,15 +188,12 @@ def detect_crop_parameters(
if not crop_params:
return ""

# Find the maximum dimensions
max_width = max(param[0] for param in crop_params)
max_height = max(param[1] for param in crop_params)

# Find the minimum x and y offsets
min_x = min(param[2] for param in crop_params)
min_y = min(param[3] for param in crop_params)

# Composite the largest frame
composite_crop = f"{max_width}:{max_height}:{min_x}:{min_y}"

return composite_crop
Expand Down

0 comments on commit 8e7965f

Please sign in to comment.