accept packets with image data

This commit is contained in:
Isaac Connor 2021-01-27 12:49:27 -05:00
parent e28c724742
commit d741f4ba04
1 changed files with 1 additions and 1 deletions

View File

@ -569,7 +569,7 @@ void Event::AddPacket(ZMPacket *packet) {
} }
//FIXME if it fails, we should write a jpeg //FIXME if it fails, we should write a jpeg
} }
if ( packet->codec_type == AVMEDIA_TYPE_VIDEO ) if ( ( packet->codec_type == AVMEDIA_TYPE_VIDEO ) or packet->image )
AddFrame(packet->image, *(packet->timestamp), packet->score, packet->analysis_image); AddFrame(packet->image, *(packet->timestamp), packet->score, packet->analysis_image);
end_time = *packet->timestamp; end_time = *packet->timestamp;
return; return;