treat last voiceframe

This commit is contained in:
Tom Early committed 2021-12-11 14:18:25 -07:00
1 parent af77a3dfe2
commit 85bc8f47c3
1 file changed
+4 -1
+4 -1
View File
@@ -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);