Skip to content

NVR with realtime local object detection for IP cameras

Avoid divide by zero in shm_frame_count (#14750)

leccelecce189d4b459fa8
diff --git a/frigate/app.py b/frigate/app.py
index bc4f626e03..2f771ec4d1 100644
--- a/frigate/app.py
+++ b/frigate/app.py
@@ -512,6 +512,9 @@ class FrigateApp:
1,
)
+ if cam_total_frame_size == 0.0:
+ return 0
+
shm_frame_count = min(50, int(available_shm / (cam_total_frame_size)))
logger.debug(