]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Avoid invalid seqno cycling detection.
authorJason Parker <jparker@digium.com>
Fri, 20 Apr 2007 21:35:27 +0000 (21:35 +0000)
committerJason Parker <jparker@digium.com>
Fri, 20 Apr 2007 21:35:27 +0000 (21:35 +0000)
Per comment from Dave Troy:
 This adds back in some simple typecasting I had in an earlier version
 which I realize now may be breaking things.

Issue #9554.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61707 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/rtp.c

index a4a98a5e89cf19abe2dc3bba12b5fd21f827acb0..300981775ac3365cfa2848e58c3f4dfaad3e702b 100644 (file)
@@ -1208,7 +1208,7 @@ struct ast_frame *ast_rtp_read(struct ast_rtp *rtp)
                /* Schedule transmission of Receiver Report */
                rtp->rtcp->schedid = ast_sched_add(rtp->sched, ast_rtcp_calc_interval(rtp), ast_rtcp_write, rtp);
        }
-       if ( rtp->lastrxseqno - seqno  > 100) /* if so it would indicate that the sender cycled; allow for misordering */
+       if ( (int)rtp->lastrxseqno - (int)seqno  > 100) /* if so it would indicate that the sender cycled; allow for misordering */
                rtp->cycles += RTP_SEQ_MOD;
 
        rtp->lastrxseqno = seqno;