mirror of
https://github.com/nostar/urfd.git
synced 2026-11-08 04:19:39 +00:00
treat last voiceframe
This commit is contained in:
1 parent
af77a3dfe2
commit
85bc8f47c3
1 file changed
+4
-1
@@ -607,7 +607,10 @@ bool CDextraProtocol::EncodeDvFramePacket(const CDvFramePacket &Packet, CBuffer
|
||||
|
||||
Buffer->Set(tag, sizeof(tag));
|
||||
Buffer->Append(Packet.GetStreamId());
|
||||
Buffer->Append((uint8_t)(Packet.GetPacketId() % 21));
|
||||
uint8_t id = Packet.GetDstarPacketId() % 21;
|
||||
if (Packet.IsLastPacket())
|
||||
id |= 0x40U;
|
||||
Buffer->Append(id);
|
||||
Buffer->Append((uint8_t *)Packet.GetCodecData(ECodecType::dstar), 9);
|
||||
Buffer->Append((uint8_t *)Packet.GetDvData(), 3);
|
||||
|
||||
|
||||
Reference in new issue
Block a user