Skip to content

Commit

Permalink
Clamp default FPS to 20 in the UI (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Dec 19, 2020
1 parent 90457d3 commit 60cca3f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Gifski/EditVideoViewController.swift
Expand Up @@ -447,7 +447,6 @@ final class EditVideoViewController: NSViewController {
}

private func defaultFrameRate(inputFrameRate frameRate: Double) -> Double {
let defaultFrameRate = frameRate >= 24 ? frameRate / 2 : frameRate
return defaultFrameRate.clamped(to: Constants.allowedFrameRate)
frameRate.clamped(to: Constants.allowedFrameRate.lowerBound...20)
}
}

0 comments on commit 60cca3f

Please sign in to comment.