From: traud Date: Mon, 6 Apr 2020 13:00:10 +0000 (+0200) Subject: res_rtp_asterisk: Avoid absolute value on unsigned subtraction. X-Git-Tag: 17.4.0-rc1~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c971769db58a38e685c2b7e41d57d6a862322c94;p=thirdparty%2Fasterisk.git res_rtp_asterisk: Avoid absolute value on unsigned subtraction. ASTERISK-28809 Change-Id: I269731715347c8e5ef7db1b6ffd3f8d15fc04be4 --- diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index 47562f510c..72f46684e1 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -7750,7 +7750,7 @@ static struct ast_frame *ast_rtp_read(struct ast_rtp_instance *instance, int rtc } return AST_LIST_FIRST(&frames); - } else if (((abs(seqno - rtp->expectedrxseqno) > 100) && timestamp > rtp->lastividtimestamp) || + } else if ((((seqno - rtp->expectedrxseqno) > 100) && timestamp > rtp->lastividtimestamp) || ast_data_buffer_count(rtp->recv_buffer) == ast_data_buffer_max(rtp->recv_buffer)) { int inserted = 0;