Set codec_type in zm_packet

This commit is contained in:
Isaac Connor 2021-01-06 11:30:03 -05:00
parent 7c049afc61
commit 08a28e6960
1 changed files with 1 additions and 0 deletions

View File

@ -2179,6 +2179,7 @@ int LocalCamera::Capture(ZMPacket &zm_packet) {
zm_packet.image->Assign(width, height, colours, subpixelorder, buffer, imagesize);
} // end if doing conversion or not
zm_packet.codec_type = AVMEDIA_TYPE_VIDEO;
zm_packet.keyframe = 1;
return 1;
} // end int LocalCamera::Capture()