Index: webrtc/modules/audio_coding/neteq/neteq_impl.cc |
diff --git a/webrtc/modules/audio_coding/neteq/neteq_impl.cc b/webrtc/modules/audio_coding/neteq/neteq_impl.cc |
index 9cd73b640963a3f655ec65aba6998d3757b60f77..e65466f6d83a28081d909fc3c49e8c69bc66dc69 100644 |
--- a/webrtc/modules/audio_coding/neteq/neteq_impl.cc |
+++ b/webrtc/modules/audio_coding/neteq/neteq_impl.cc |
@@ -206,13 +206,13 @@ int NetEqImpl::GetAudio(AudioFrame* audio_frame, bool* muted) { |
TRACE_EVENT0("webrtc", "NetEqImpl::GetAudio"); |
rtc::CritScope lock(&crit_sect_); |
int error = GetAudioInternal(audio_frame, muted); |
- RTC_DCHECK_EQ( |
- audio_frame->sample_rate_hz_, |
- rtc::checked_cast<int>(audio_frame->samples_per_channel_ * 100)); |
if (error != 0) { |
error_code_ = error; |
return kFail; |
} |
+ RTC_DCHECK_EQ( |
+ audio_frame->sample_rate_hz_, |
+ rtc::checked_cast<int>(audio_frame->samples_per_channel_ * 100)); |
SetAudioFrameActivityAndType(vad_->enabled(), LastOutputType(), |
last_vad_activity_, audio_frame); |
last_vad_activity_ = audio_frame->vad_activity_; |