diff --git a/modules/audio_coding/acm2/audio_coding_module.cc b/modules/audio_coding/acm2/audio_coding_module.cc index 1f108f5ed9..5997d1269e 100644 --- a/modules/audio_coding/acm2/audio_coding_module.cc +++ b/modules/audio_coding/acm2/audio_coding_module.cc @@ -1096,7 +1096,7 @@ int AudioCodingModuleImpl::IncomingPacket(const uint8_t* incoming_payload, // Minimum playout delay (Used for lip-sync). int AudioCodingModuleImpl::SetMinimumPlayoutDelay(int time_ms) { if ((time_ms < 0) || (time_ms > 10000)) { - LOG(LS_ERROR) << "Delay must be in the range of 0-1000 milliseconds."; + LOG(LS_ERROR) << "Delay must be in the range of 0-10000 milliseconds."; return -1; } return receiver_.SetMinimumDelay(time_ms); @@ -1104,7 +1104,7 @@ int AudioCodingModuleImpl::SetMinimumPlayoutDelay(int time_ms) { int AudioCodingModuleImpl::SetMaximumPlayoutDelay(int time_ms) { if ((time_ms < 0) || (time_ms > 10000)) { - LOG(LS_ERROR) << "Delay must be in the range of 0-1000 milliseconds."; + LOG(LS_ERROR) << "Delay must be in the range of 0-10000 milliseconds."; return -1; } return receiver_.SetMaximumDelay(time_ms); diff --git a/modules/audio_coding/neteq/neteq_impl.cc b/modules/audio_coding/neteq/neteq_impl.cc index 680250f20f..3cdcf458af 100644 --- a/modules/audio_coding/neteq/neteq_impl.cc +++ b/modules/audio_coding/neteq/neteq_impl.cc @@ -282,7 +282,7 @@ void NetEqImpl::RemoveAllPayloadTypes() { bool NetEqImpl::SetMinimumDelay(int delay_ms) { rtc::CritScope lock(&crit_sect_); - if (delay_ms >= 0 && delay_ms < 10000) { + if (delay_ms >= 0 && delay_ms <= 10000) { assert(delay_manager_.get()); return delay_manager_->SetMinimumDelay(delay_ms); } @@ -291,7 +291,7 @@ bool NetEqImpl::SetMinimumDelay(int delay_ms) { bool NetEqImpl::SetMaximumDelay(int delay_ms) { rtc::CritScope lock(&crit_sect_); - if (delay_ms >= 0 && delay_ms < 10000) { + if (delay_ms >= 0 && delay_ms <= 10000) { assert(delay_manager_.get()); return delay_manager_->SetMaximumDelay(delay_ms); }