diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-11-15 18:56:05 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-11-15 19:55:03 +0100 |
commit | 3424ee0c8dd3c4524b428b94379817b10aa65239 (patch) | |
tree | 20a59a3dc591ca1ee986f6adefbcad6259a4e23b | |
parent | 8925bf96d5b2ca011c504a8d78fe1c7c54b42834 (diff) |
osmux: Drop marker bit in forged RTP packets to fill gaps
If the last RTP we received from the user is a Marker bit (which is
expected to be the first in the batch), then there's no need to keep
marking the forged RTP packets to fill holes also as Marker bit.
Change-Id: I5cef6185afbfce748473a096e8ebabd9c9628e12
-rw-r--r-- | src/osmux_input.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/osmux_input.c b/src/osmux_input.c index 3a85b45..866588f 100644 --- a/src/osmux_input.c +++ b/src/osmux_input.c @@ -401,7 +401,8 @@ static int osmux_replay_lost_packets(struct osmux_link *link, const struct osmux /* The original RTP message has been already sanity checked. */ rtph = osmo_rtp_get_hdr(clone); - + /* Faking a follow up RTP pkt here, so no Marker bit: */ + rtph->marker = false; /* Adjust sequence number and timestamp */ rtph->sequence = htons(ntohs(rtph->sequence) + i); rtph->timestamp = htonl(ntohl(rtph->timestamp) + |