[Asterisk-code-review] res_rtp_asterisk: Avoid absolute value on unsigned subtraction. (asterisk[17])
Friendly Automation
asteriskteam at digium.com
Wed Apr 8 09:38:01 CDT 2020
Friendly Automation has submitted this change. ( https://gerrit.asterisk.org/c/asterisk/+/14119 )
Change subject: res_rtp_asterisk: Avoid absolute value on unsigned subtraction.
......................................................................
res_rtp_asterisk: Avoid absolute value on unsigned subtraction.
ASTERISK-28809
Change-Id: I269731715347c8e5ef7db1b6ffd3f8d15fc04be4
---
M res/res_rtp_asterisk.c
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Joshua Colp: Looks good to me, but someone else must approve
Kevin Harwell: Looks good to me, but someone else must approve
George Joseph: Looks good to me, approved
Friendly Automation: Approved for Submit
diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c
index 47562f5..72f4668 100644
--- a/res/res_rtp_asterisk.c
+++ b/res/res_rtp_asterisk.c
@@ -7750,7 +7750,7 @@
}
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;
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/14119
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 17
Gerrit-Change-Id: I269731715347c8e5ef7db1b6ffd3f8d15fc04be4
Gerrit-Change-Number: 14119
Gerrit-PatchSet: 2
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200408/a686bf0f/attachment.html>
More information about the asterisk-code-review
mailing list