| Index: webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc
|
| diff --git a/webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc b/webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc
|
| index aea64c9133bdc4bf596ae438f0e9a43476288022..260f8a8e67113678c7257ea275038f15a4750004 100644
|
| --- a/webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc
|
| +++ b/webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc
|
| @@ -563,7 +563,7 @@ int AudioCodingModuleImpl::RegisterReceiveCodec(const CodecInst& codec) {
|
| RTC_CHECK(codec_index) << "Invalid codec ID: " << static_cast<int>(*codec_id);
|
|
|
| // Check if the payload-type is valid.
|
| - if (!ACMCodecDB::ValidPayloadType(codec.pltype)) {
|
| + if (!RentACodec::IsPayloadTypeValid(codec.pltype)) {
|
| LOG_F(LS_ERROR) << "Invalid payload type " << codec.pltype << " for "
|
| << codec.plname;
|
| return -1;
|
| @@ -589,7 +589,7 @@ int AudioCodingModuleImpl::RegisterExternalReceiveCodec(
|
| }
|
|
|
| // Check if the payload-type is valid.
|
| - if (!ACMCodecDB::ValidPayloadType(rtp_payload_type)) {
|
| + if (!RentACodec::IsPayloadTypeValid(rtp_payload_type)) {
|
| LOG_F(LS_ERROR) << "Invalid payload-type " << rtp_payload_type
|
| << " for external decoder.";
|
| return -1;
|
|
|