Add presentation timestamp to video frame metadata

This commit is contained in:
Cameron Gutman
2019-11-10 18:07:11 -08:00
parent eceb7d3a2b
commit f4dad9ae8b
7 changed files with 27 additions and 4 deletions

View File

@@ -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]);