Don't need keyframes when saving jpegs.

This commit is contained in:
Isaac Connor 2020-12-27 12:32:06 -05:00
parent af94473eb1
commit e58c06e60f
1 changed files with 1 additions and 1 deletions

View File

@ -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;