Remove a legacy DCHEC in FakeDecodeFromFile.
Bug: None Change-Id: Ia76bf18eb228b658d0a7146cdb6e46586b3507a0 Reviewed-on: https://webrtc-review.googlesource.com/87435 Reviewed-by: Alessio Bazzica <alessiob@webrtc.org> Commit-Queue: Minyue Li <minyue@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23890}
This commit is contained in:
parent
3e8cb4718b
commit
99fb004f0d
@ -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<int>(total_samples_to_decode);
|
||||
@ -55,7 +55,7 @@ int FakeDecodeFromFile::DecodeInternal(const uint8_t* encoded,
|
||||
ByteReader<uint32_t>::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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user