mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-21 15:40:31 +00:00
Add byteswapping macros for big-endian systems
This commit is contained in:
@@ -221,9 +221,9 @@ static void ReceiveThreadProc(void* context) {
|
||||
}
|
||||
|
||||
// Convert fields to host byte-order
|
||||
rtp->sequenceNumber = htons(rtp->sequenceNumber);
|
||||
rtp->timestamp = htonl(rtp->timestamp);
|
||||
rtp->ssrc = htonl(rtp->ssrc);
|
||||
rtp->sequenceNumber = BE16(rtp->sequenceNumber);
|
||||
rtp->timestamp = BE32(rtp->timestamp);
|
||||
rtp->ssrc = BE32(rtp->ssrc);
|
||||
|
||||
queueStatus = RtpqAddPacket(&rtpReorderQueue, (PRTP_PACKET)packet, &packet->q.rentry);
|
||||
if (RTPQ_HANDLE_NOW(queueStatus)) {
|
||||
|
||||
Reference in New Issue
Block a user