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

@@ -218,8 +218,10 @@ static void ReceiveThreadProc(void* context) {
continue;
}
// RTP sequence number must be in host order for the RTP queue
// Convert fields to host byte-order
rtp->sequenceNumber = htons(rtp->sequenceNumber);
rtp->timestamp = htonl(rtp->timestamp);
rtp->ssrc = htonl(rtp->ssrc);
queueStatus = RtpqAddPacket(&rtpReorderQueue, (PRTP_PACKET)packet, &packet->q.rentry);
if (RTPQ_HANDLE_NOW(queueStatus)) {