Set codec_type in zm_packet

pull/3122/head
Isaac Connor 2021-01-06 11:30:03 -05:00
parent 510cbd8b19
commit 705959d1ec
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); zm_packet.image->Assign(width, height, colours, subpixelorder, buffer, imagesize);
} // end if doing conversion or not } // end if doing conversion or not
zm_packet.codec_type = AVMEDIA_TYPE_VIDEO;
zm_packet.keyframe = 1; zm_packet.keyframe = 1;
return 1; return 1;
} // end int LocalCamera::Capture() } // end int LocalCamera::Capture()