Set codec_type in zm_packet
This commit is contained in:
parent
7c049afc61
commit
08a28e6960
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue