aboutsummaryrefslogtreecommitdiffstats
path: root/main/rtp.c
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-04-20 21:37:04 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-04-20 21:37:04 +0000
commitf0cc154be08aee879734f2461166ab2caaf3f9d2 (patch)
tree553517823f1c769f0b80b0e85a7c6e8f9ba82ad3 /main/rtp.c
parente12ada37118ab08da3bccdbc08ee34b86f9c85da (diff)
Merged revisions 61707 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r61707 | qwell | 2007-04-20 16:35:27 -0500 (Fri, 20 Apr 2007) | 8 lines Avoid invalid seqno cycling detection. 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: http://svn.digium.com/svn/asterisk/trunk@61708 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/rtp.c')
-rw-r--r--main/rtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/rtp.c b/main/rtp.c
index a4af4e01c..2c5347413 100644
--- a/main/rtp.c
+++ b/main/rtp.c
@@ -1287,7 +1287,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;