Store endtime for each packet
This commit is contained in:
parent
de38c29e83
commit
aaea6c6ead
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue