aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmux.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/osmux.c')
-rw-r--r--src/osmux.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/osmux.c b/src/osmux.c
index 34f4422..5cd586c 100644
--- a/src/osmux.c
+++ b/src/osmux.c
@@ -347,6 +347,10 @@ static void osmux_replay_lost_packets(struct batch_list_node *node,
diff = ntohs(cur_rtph->sequence) - ntohs(rtph->sequence);
+ /* Lifesaver: make sure bugs don't spawn lots of clones */
+ if (diff > 16)
+ diff = 16;
+
/* If diff between last RTP packet seen and this one is > 1,
* then we lost several RTP packets, let's replay them.
*/