mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 05:40:42 +01:00
Fix integer overflow.
Bug: chromium:1501500 Change-Id: Ie13edbc90926c70cd37059a99cd539b15d0fb3a3 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/327320 Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org> Commit-Queue: Jakob Ivarsson <jakobi@webrtc.org> Cr-Commit-Position: refs/heads/main@{#41146}
This commit is contained in:
parent
e75cd0c704
commit
9305b108bd
1 changed files with 4 additions and 4 deletions
|
@ -310,8 +310,8 @@ NetEq::Operation DecisionLogic::ExpectedPacketAvailable(
|
|||
!status.play_dtmf) {
|
||||
if (config_.enable_stable_delay_mode) {
|
||||
const int playout_delay_ms = GetPlayoutDelayMs(status);
|
||||
const int low_limit = TargetLevelMs();
|
||||
const int high_limit = low_limit +
|
||||
const int64_t low_limit = TargetLevelMs();
|
||||
const int64_t high_limit = low_limit +
|
||||
packet_arrival_history_->GetMaxDelayMs() +
|
||||
kDelayAdjustmentGranularityMs;
|
||||
if (playout_delay_ms >= high_limit * 4) {
|
||||
|
|
Loading…
Reference in a new issue