diff --git a/modules/demux/rtpsession.c b/modules/demux/rtpsession.c index 4e1008123b06beefb17b57cf507c3bf0a2af63f3..8339f26087d05d6369f6a126c1f21e7996775c67 100644 --- a/modules/demux/rtpsession.c +++ b/modules/demux/rtpsession.c @@ -297,7 +297,7 @@ rtp_receive (demux_t *demux, rtp_session_t *session, block_t *block) block_t **pp = &src->blocks; for (block_t *prev = *pp; prev != NULL; prev = *pp) { - if ((int16_t)(seq - rtp_seq (*pp)) >= 0) + if ((int16_t)(seq - rtp_seq (*pp)) < 0) break; pp = &prev->p_next; }