From 02a2c783e495edeb2c22a8f24a3d3a4d0e84a34b Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 3 Feb 2022 11:57:27 -0500 Subject: [PATCH] Disable alleged y-channel image motion detection. Doesn't work. --- src/zm_monitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index 6b2b44e63..3a4879e5c 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -2331,7 +2331,7 @@ bool Monitor::Analyse() { if (function == MODECT or function == MOCORD) { if (!ref_image.Buffer()) { - if (0 snap->in_frame && ( + if (0 and snap->in_frame && ( ((AVPixelFormat)snap->in_frame->format == AV_PIX_FMT_YUV420P) || ((AVPixelFormat)snap->in_frame->format == AV_PIX_FMT_YUVJ420P)