diff --git a/modules/access/rtp/session.c b/modules/access/rtp/session.c
index f514b63aabbe5e4a8e8d6a52b250dd4b643852a1..0c26d34675e579e60fc04a049995b606a2543c2e 100644
--- a/modules/access/rtp/session.c
+++ b/modules/access/rtp/session.c
@@ -355,7 +355,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)
     {
-        int16_t delta_seq = seq - rtp_seq (prev);
+        delta_seq = seq - rtp_seq (prev);
         if (delta_seq < 0)
             break;
         if (delta_seq == 0)