Add byteswapping macros for big-endian systems

This commit is contained in:
Cameron Gutman committed 2021-04-17 21:43:13 -05:00
1 parent efaeade7a6
commit 4304e597d8
8 files changed
+146 -92

No files matched your search

+3 -3
View File
@@ -142,9 +142,9 @@ static void ReceiveThreadProc(void* context) {
// 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);
packet->sequenceNumber = BE16(packet->sequenceNumber);
packet->timestamp = BE32(packet->timestamp);
packet->ssrc = BE32(packet->ssrc);
queueStatus = RtpfAddPacket(&rtpQueue, packet, err, (PRTPFEC_QUEUE_ENTRY)&buffer[receiveSize]);