| Index: webrtc/modules/audio_coding/acm2/audio_coding_module.cc
|
| diff --git a/webrtc/modules/audio_coding/acm2/audio_coding_module.cc b/webrtc/modules/audio_coding/acm2/audio_coding_module.cc
|
| index bc814f6d6fac682f146302e68f09e4173ef6b94b..6964ca2841c07c9a81b99993f28a12b99d0b6f4a 100644
|
| --- a/webrtc/modules/audio_coding/acm2/audio_coding_module.cc
|
| +++ b/webrtc/modules/audio_coding/acm2/audio_coding_module.cc
|
| @@ -760,8 +760,6 @@ int AudioCodingModuleImpl::PreprocessToAddData(const AudioFrame& in_frame,
|
| expected_codec_ts_ = in_frame.timestamp_;
|
| first_10ms_data_ = true;
|
| } else if (in_frame.timestamp_ != expected_in_ts_) {
|
| - LOG(LS_WARNING) << "Unexpected input timestamp: " << in_frame.timestamp_
|
| - << ", expected: " << expected_in_ts_;
|
| expected_codec_ts_ +=
|
| (in_frame.timestamp_ - expected_in_ts_) *
|
| static_cast<uint32_t>(
|
| @@ -979,8 +977,6 @@ bool AudioCodingModuleImpl::RegisterReceiveCodec(
|
| RTC_DCHECK(receiver_initialized_);
|
|
|
| if (!acm2::RentACodec::IsPayloadTypeValid(rtp_payload_type)) {
|
| - LOG_F(LS_ERROR) << "Invalid payload-type " << rtp_payload_type
|
| - << " for decoder.";
|
| return false;
|
| }
|
|
|
| @@ -1006,14 +1002,12 @@ int AudioCodingModuleImpl::RegisterReceiveCodecUnlocked(
|
| rtc::FunctionView<std::unique_ptr<AudioDecoder>()> isac_factory) {
|
| RTC_DCHECK(receiver_initialized_);
|
| if (codec.channels > 2) {
|
| - LOG_F(LS_ERROR) << "Unsupported number of channels: " << codec.channels;
|
| return -1;
|
| }
|
|
|
| auto codec_id = acm2::RentACodec::CodecIdByParams(codec.plname, codec.plfreq,
|
| codec.channels);
|
| if (!codec_id) {
|
| - LOG_F(LS_ERROR) << "Wrong codec params to be registered as receive codec";
|
| return -1;
|
| }
|
| auto codec_index = acm2::RentACodec::CodecIndexFromId(*codec_id);
|
| @@ -1021,8 +1015,6 @@ int AudioCodingModuleImpl::RegisterReceiveCodecUnlocked(
|
|
|
| // Check if the payload-type is valid.
|
| if (!acm2::RentACodec::IsPayloadTypeValid(codec.pltype)) {
|
| - LOG_F(LS_ERROR) << "Invalid payload type " << codec.pltype << " for "
|
| - << codec.plname;
|
| return -1;
|
| }
|
|
|
| @@ -1048,14 +1040,11 @@ int AudioCodingModuleImpl::RegisterExternalReceiveCodec(
|
| rtc::CritScope lock(&acm_crit_sect_);
|
| RTC_DCHECK(receiver_initialized_);
|
| if (num_channels > 2 || num_channels < 0) {
|
| - LOG_F(LS_ERROR) << "Unsupported number of channels: " << num_channels;
|
| return -1;
|
| }
|
|
|
| // Check if the payload-type is valid.
|
| if (!acm2::RentACodec::IsPayloadTypeValid(rtp_payload_type)) {
|
| - LOG_F(LS_ERROR) << "Invalid payload-type " << rtp_payload_type
|
| - << " for external decoder.";
|
| return -1;
|
| }
|
|
|
|
|