mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-11-28 08:44:21 +00:00
Add presentation timestamp to video frame metadata
This commit is contained in:
1 parent
eceb7d3a2b
commit
f4dad9ae8b
7 files changed
+27
-4
No files matched your search
+3
-1
@@ -116,9 +116,11 @@ static void ReceiveThreadProc(void* context) {
|
||||
// as quickly, since we're now just keeping the NAT session open.
|
||||
receivedDataFromPeer = 1;
|
||||
|
||||
// RTP sequence number must be in host order for the RTP queue
|
||||
// Convert fields to host byte-order
|
||||
packet = (PRTP_PACKET)&buffer[0];
|
||||
packet->sequenceNumber = htons(packet->sequenceNumber);
|
||||
packet->timestamp = htonl(packet->timestamp);
|
||||
packet->ssrc = htonl(packet->ssrc);
|
||||
|
||||
queueStatus = RtpfAddPacket(&rtpQueue, packet, err, (PRTPFEC_QUEUE_ENTRY)&buffer[receiveSize]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user