diff --git a/modules/audio_coding/neteq/tools/fake_decode_from_file.cc b/modules/audio_coding/neteq/tools/fake_decode_from_file.cc index a38de32c1f..a51dac3fe0 100644 --- a/modules/audio_coding/neteq/tools/fake_decode_from_file.cc +++ b/modules/audio_coding/neteq/tools/fake_decode_from_file.cc @@ -31,7 +31,7 @@ int FakeDecodeFromFile::DecodeInternal(const uint8_t* encoded, // Decoder is asked to produce codec-internal comfort noise. RTC_DCHECK(!encoded); // NetEq always sends nullptr in this case. RTC_DCHECK(cng_mode_); - RTC_DCHECK_GT(last_decoded_length_, 0); + RTC_DCHECK_GT(total_samples_to_decode, 0); std::fill_n(decoded, total_samples_to_decode, 0); *speech_type = kComfortNoise; return rtc::dchecked_cast(total_samples_to_decode); @@ -55,7 +55,7 @@ int FakeDecodeFromFile::DecodeInternal(const uint8_t* encoded, ByteReader::ReadLittleEndian(&encoded[8]); if (original_payload_size_bytes == 1) { // This is a comfort noise payload. - RTC_DCHECK_GT(last_decoded_length_, 0); + RTC_DCHECK_GT(total_samples_to_decode, 0); std::fill_n(decoded, total_samples_to_decode, 0); *speech_type = kComfortNoise; cng_mode_ = true;