mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
res_rtp_asterisk: Avoid absolute value on unsigned subtraction.
ASTERISK-28809 Change-Id: I269731715347c8e5ef7db1b6ffd3f8d15fc04be4
This commit is contained in:
committed by
Friendly Automation
parent
8021924a46
commit
fdb6370759
@@ -7750,7 +7750,7 @@ static struct ast_frame *ast_rtp_read(struct ast_rtp_instance *instance, int rtc
|
|||||||
}
|
}
|
||||||
|
|
||||||
return AST_LIST_FIRST(&frames);
|
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)) {
|
ast_data_buffer_count(rtp->recv_buffer) == ast_data_buffer_max(rtp->recv_buffer)) {
|
||||||
int inserted = 0;
|
int inserted = 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user