Store endtime for each packet

This commit is contained in:
Isaac Connor 2020-12-15 15:57:01 -05:00
parent de38c29e83
commit aaea6c6ead
1 changed files with 1 additions and 0 deletions

View File

@ -553,6 +553,7 @@ void Event::AddPacket(ZMPacket *packet, int score, Image *alarm_image) {
if ( have_video_keyframe && ( packet->codec_type == AVMEDIA_TYPE_VIDEO ) ) { if ( have_video_keyframe && ( packet->codec_type == AVMEDIA_TYPE_VIDEO ) ) {
AddFrame(packet->image, *packet->timestamp, score, alarm_image); AddFrame(packet->image, *packet->timestamp, score, alarm_image);
} // end if is video } // end if is video
end_time = *packet->timestamp;
return; return;
} }