diff --git a/modules/audio_coding/neteq/tools/neteq_test.cc b/modules/audio_coding/neteq/tools/neteq_test.cc index 7e2093de0e..997b034df0 100644 --- a/modules/audio_coding/neteq/tools/neteq_test.cc +++ b/modules/audio_coding/neteq/tools/neteq_test.cc @@ -270,6 +270,11 @@ NetEqTest::SimulationStepResult NetEqTest::RunToNextGetAudio() { // End the simulation if the gap is too large. This indicates an issue // with the event log file. 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();