diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index b6272f421..63fd58d3e 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -1395,7 +1395,7 @@ bool Monitor::Analyse() { } else if ( signal && Active() && (function == MODECT || function == MOCORD) ) { Event::StringSet zoneSet; int motion_score = last_motion_score; - if ( !(image_count % (motion_frame_skip+1) ) ) { + if ( (!motion_frame_skip) || !(image_count % (motion_frame_skip+1) ) ) { // Get new score. motion_score = DetectMotion(*snap_image, zoneSet); @@ -1718,7 +1718,7 @@ bool Monitor::Analyse() { //Warning("In state TAPE, //video_store_data->recording = event->StartTime(); //} - if ( !(image_count%(frame_skip+1)) ) { + if ( (!frame_skip) || !(image_count%(frame_skip+1)) ) { if ( config.bulk_frame_interval > 1 ) { event->AddFrame( snap_image, *timestamp, (event->Frames()