Set codec_type in zm_packet

This commit is contained in:
Isaac Connor committed 2021-01-06 11:30:03 -05:00
1 parent 7c049afc61
commit 08a28e6960
1 file changed
+1
+1
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()