aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2022-11-16 15:12:16 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2022-11-16 19:53:31 +0100
commit8e4f8574d15842a8b99b63c746deb90fc4f820ff (patch)
treec50032b363e88da0531b6ad5b60810c792471ab9 /src
parente6306faebdc365d6e3b2d62eb8850655776b19cd (diff)
osmux: Avoid filling in seqnum holes upon rx of RTP pkt with M bit set
Diffstat (limited to 'src')
-rw-r--r--src/osmux_input.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/osmux_input.c b/src/osmux_input.c
index 6e6b00d..3e6f4b7 100644
--- a/src/osmux_input.c
+++ b/src/osmux_input.c
@@ -435,6 +435,10 @@ static int osmux_replay_lost_packets(struct osmux_link *link, const struct osmux
int i, rc;
struct osmux_in_req clone_req;
+ /* If M bit is set, this is a sync point, so any sort of seq jump is expected and has no real meaning. */
+ if (req->rtph->marker)
+ return 0;
+
/* Have we seen any RTP packet in this batch before? */
if (llist_empty(&req->circuit->msg_list))
return 0;