# HG changeset patch # User Mychaela Falconia # Date 1720374079 0 # Node ID e67b3bb87d1b7b9ad70e1152974a409edff35460 # Parent 84d427017d2f8fc5eeeb4348bd4521c883035605 RTP Tx: network byte order diff -r 84d427017d2f -r e67b3bb87d1b src/rtp_tx.c --- a/src/rtp_tx.c Sun Jul 07 07:33:48 2024 +0000 +++ b/src/rtp_tx.c Sun Jul 07 17:41:19 2024 +0000 @@ -6,6 +6,7 @@ #include #include #include +#include /* for network byte order functions */ #include #include @@ -71,9 +72,9 @@ rtph->m_pt = payload_type; if (marker) rtph->m_pt |= 0x80; - rtph->ssrc = endp->tx.ssrc; - rtph->seq = endp->tx.seq; - rtph->tstamp = endp->tx.ts; + rtph->ssrc = htonl(endp->tx.ssrc); + rtph->seq = htons(endp->tx.seq); + rtph->tstamp = htonl(endp->tx.ts); pl_out = msgb_put(msg, payload_len); memcpy(pl_out, payload, payload_len); endp->tx.seq++;