Skip to content

Commit 70565bf

Browse files
authored
Merge branch 'mrousavy:main' into main
2 parents 0bda8a4 + d9932f4 commit 70565bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/CameraView+RecordVideo.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ extension CameraView: AVCaptureVideoDataOutputSampleBufferDelegate, AVCaptureAud
267267

268268
let maxFrameProcessorFps = Double(videoDevice.activeVideoMinFrameDuration.timescale) * Double(videoDevice.activeVideoMinFrameDuration.value)
269269
let averageFps = 1.0 / frameProcessorPerformanceDataCollector.averageExecutionTimeSeconds
270-
let suggestedFrameProcessorFps = floor(min(averageFps, maxFrameProcessorFps))
270+
let suggestedFrameProcessorFps = max(floor(min(averageFps, maxFrameProcessorFps)), 1)
271271

272272
if frameProcessorFps.intValue == -1 {
273273
// frameProcessorFps="auto"

0 commit comments

Comments
 (0)