path: root/src
diff options
authorPablo Neira Ayuso <pablo@gnumonks.org>2013-12-16 12:14:31 +0100
committerPablo Neira Ayuso <pablo@gnumonks.org>2013-12-16 12:55:28 +0100
commitd8a8c0db208bcd528de9072c381ef12df64bf503 (patch)
tree30951f43e74bf69747b53b19b1de287e2efa033b /src
parentfe9823b6d5c6bfd057a6d2679f29e3ab5423aec5 (diff)
osmux: fix handling of old RTP messages
Make sure that osmux_replay_lost_packets() doesn't try to fill gaps if we see RTP messages whose sequence number is in the past.
Diffstat (limited to 'src')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmux.c b/src/osmux.c
index a385d22..bca21ae 100644
--- a/src/osmux.c
+++ b/src/osmux.c
@@ -330,7 +330,7 @@ static int osmux_rtp_amr_payload_len(struct msgb *msg, struct rtp_hdr *rtph)
static void osmux_replay_lost_packets(struct batch_list_node *node,
struct rtp_hdr *cur_rtph)
- uint16_t diff;
+ int16_t diff;
struct msgb *last;
struct rtp_hdr *rtph;
int i;