mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-18 08:07:56 +01:00
Remove NetEq simulation step size restriction.
This should not be relevant anymore and is causing some issues due to SetMinimumDelay events early in the log. Bug: None Change-Id: Ib7e3c624608c9bceaed31bd6669db59887d24659 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/303580 Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org> Commit-Queue: Jakob Ivarsson <jakobi@webrtc.org> Cr-Commit-Position: refs/heads/main@{#39956}
This commit is contained in:
parent
d1771e925d
commit
ecdedac3da
1 changed files with 2 additions and 11 deletions
|
@ -273,17 +273,8 @@ NetEqTest::SimulationStepResult NetEqTest::RunToNextGetAudio() {
|
||||||
prev_lifetime_stats_ = lifetime_stats;
|
prev_lifetime_stats_ = lifetime_stats;
|
||||||
const bool no_more_packets_to_decode =
|
const bool no_more_packets_to_decode =
|
||||||
!input_->NextPacketTime() && !operations_state.next_packet_available;
|
!input_->NextPacketTime() && !operations_state.next_packet_available;
|
||||||
// End the simulation if the gap is too large. This indicates an issue
|
result.is_simulation_finished =
|
||||||
// with the event log file.
|
no_more_packets_to_decode || input_->ended();
|
||||||
const bool simulation_step_too_large = result.simulation_step_ms > 1000;
|
|
||||||
if (simulation_step_too_large) {
|
|
||||||
// If we don't reset the step time, the large gap will be included in
|
|
||||||
// the simulation time, which can be a large distortion.
|
|
||||||
result.simulation_step_ms = 10;
|
|
||||||
}
|
|
||||||
result.is_simulation_finished = simulation_step_too_large ||
|
|
||||||
no_more_packets_to_decode ||
|
|
||||||
input_->ended();
|
|
||||||
prev_ops_state_ = operations_state;
|
prev_ops_state_ = operations_state;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue