From 189d4b459fa83f93b782e4a4f00f039ba76d3371 Mon Sep 17 00:00:00 2001 From: leccelecce <24962424+leccelecce@users.noreply.github.com> Date: Sun, 3 Nov 2024 15:28:19 +0000 Subject: [PATCH] Avoid divide by zero in shm_frame_count (#14750) --- frigate/app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frigate/app.py b/frigate/app.py index bc4f626e0..2f771ec4d 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(