diff --git a/ios/CameraView+RecordVideo.swift b/ios/CameraView+RecordVideo.swift index ae4e350..4cca687 100644 --- a/ios/CameraView+RecordVideo.swift +++ b/ios/CameraView+RecordVideo.swift @@ -250,7 +250,7 @@ extension CameraView: AVCaptureVideoDataOutputSampleBufferDelegate, AVCaptureAud let maxFrameProcessorFps = Double(videoDevice.activeVideoMinFrameDuration.timescale) * Double(videoDevice.activeVideoMinFrameDuration.value) let averageFps = 1.0 / frameProcessorPerformanceDataCollector.averageExecutionTimeSeconds - let suggestedFrameProcessorFps = floor(min(averageFps, maxFrameProcessorFps)) + let suggestedFrameProcessorFps = max(floor(min(averageFps, maxFrameProcessorFps)), 1) if frameProcessorFps.intValue == -1 { // frameProcessorFps="auto"