Change failing rtc::dchecked_cast to rtc::saturated_cast.
Bug: chromium:1016147 Change-Id: I57106299694c379b112ca2dec95571fb82b4459c Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/157900 Reviewed-by: Minyue Li <minyue@webrtc.org> Commit-Queue: Jakob Ivarsson <jakobi@webrtc.org> Cr-Commit-Position: refs/heads/master@{#29556}
This commit is contained in:
committed by
Commit Bot
parent
72cc71cd70
commit
42b6e2d9eb
@ -265,8 +265,8 @@ Operations DecisionLogic::CngOperation(Modes prev_mode,
|
||||
// The waiting time for this packet will be longer than 1.5
|
||||
// times the wanted buffer delay. Apply fast-forward to cut the
|
||||
// waiting time down to the optimal.
|
||||
noise_fast_forward_ = rtc::dchecked_cast<size_t>(noise_fast_forward_ +
|
||||
excess_waiting_time_samp);
|
||||
noise_fast_forward_ = rtc::saturated_cast<size_t>(noise_fast_forward_ +
|
||||
excess_waiting_time_samp);
|
||||
timestamp_diff =
|
||||
rtc::saturated_cast<int32_t>(timestamp_diff + excess_waiting_time_samp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user