fix: Fix minFps being wrong (#2248)

* fix: Fix `minFps` being wrong

* Update AVCaptureDevice.Format+toDictionary.swift
This commit is contained in:
Marc Rousavy 2023-12-04 13:41:56 +03:00 committed by GitHub
parent edb415e913
commit d78d3ea214
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,10 +15,10 @@ extension AVCaptureDevice.Format {
} }
var minFps: Float64 { var minFps: Float64 {
let maxRange = videoSupportedFrameRateRanges.max { l, r in let minRange = videoSupportedFrameRateRanges.min { l, r in
return l.maxFrameRate < r.maxFrameRate return l.minFrameRate < r.minFrameRate
} }
return maxRange?.maxFrameRate ?? 0 return minRange?.minFrameRate ?? 0
} }
var maxFps: Float64 { var maxFps: Float64 {