RTP: fix re-ordering across sequence number wrap
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 5 Sep 2009 08:39:21 +0000 (11:39 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 5 Sep 2009 08:39:21 +0000 (11:39 +0300)
Pointed-out-by: Marian Ďurkovič <md@bts.sk>
modules/access/rtp/session.c

index a6925f8..b8d8722 100644 (file)
@@ -348,7 +348,7 @@ rtp_queue (demux_t *demux, rtp_session_t *session, block_t *block)
     block_t **pp = &src->blocks;
     for (block_t *prev = *pp; prev != NULL; prev = *pp)
     {
-        int delta_seq = seq - rtp_seq (prev);
+        int16_t delta_seq = seq - rtp_seq (prev);
         if (delta_seq < 0)
             break;
         if (delta_seq == 0)