From e58c06e60f05c4704fd6f3c36bcb301eed6e9dae Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Sun, 27 Dec 2020 12:32:06 -0500 Subject: [PATCH] Don't need keyframes when saving jpegs. --- src/zm_event.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zm_event.cpp b/src/zm_event.cpp index 05a3099f1..b948b2e17 100644 --- a/src/zm_event.cpp +++ b/src/zm_event.cpp @@ -550,7 +550,7 @@ void Event::AddPacket(ZMPacket *packet) { } //FIXME if it fails, we should write a jpeg } - if ( have_video_keyframe && ( packet->codec_type == AVMEDIA_TYPE_VIDEO ) ) { + if ( packet->image ) { AddFrame(packet->image, *(packet->timestamp), packet->score, packet->analysis_image); } // end if is video end_time = *packet->timestamp;