diff --git a/src/zm_event.cpp b/src/zm_event.cpp index dccd3bcc0..0ad4bfa41 100644 --- a/src/zm_event.cpp +++ b/src/zm_event.cpp @@ -553,6 +553,7 @@ void Event::AddPacket(ZMPacket *packet, int score, Image *alarm_image) { if ( have_video_keyframe && ( packet->codec_type == AVMEDIA_TYPE_VIDEO ) ) { AddFrame(packet->image, *packet->timestamp, score, alarm_image); } // end if is video + end_time = *packet->timestamp; return; }