fix: Fix minFps
being wrong (#2248)
* fix: Fix `minFps` being wrong * Update AVCaptureDevice.Format+toDictionary.swift
This commit is contained in:
parent
edb415e913
commit
d78d3ea214
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user