Index: webrtc/modules/audio_coding/main/acm2/codec_manager.cc |
diff --git a/webrtc/modules/audio_coding/main/acm2/codec_manager.cc b/webrtc/modules/audio_coding/main/acm2/codec_manager.cc |
index a1303262cd0102f6c3ac466f73b93405afed4998..4d245055f9c977ef82a252d60f13da5911f97990 100644 |
--- a/webrtc/modules/audio_coding/main/acm2/codec_manager.cc |
+++ b/webrtc/modules/audio_coding/main/acm2/codec_manager.cc |
@@ -46,16 +46,6 @@ int IsValidSendCodec(const CodecInst& send_codec, bool is_primary_encoder) { |
return -1; |
} |
- // TODO(tlegrand): Remove this check. Already taken care of in |
- // ACMCodecDB::CodecNumber(). |
- // Check if the payload-type is valid |
- if (!ACMCodecDB::ValidPayloadType(send_codec.pltype)) { |
- WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceAudioCoding, dummy_id, |
- "Invalid payload-type %d for %s.", send_codec.pltype, |
- send_codec.plname); |
- return -1; |
- } |
- |
// Telephone-event cannot be a send codec. |
if (!STR_CASE_CMP(send_codec.plname, "telephone-event")) { |
WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceAudioCoding, dummy_id, |
@@ -198,7 +188,7 @@ int CodecManager::RegisterEncoder(const CodecInst& send_codec) { |
// TODO(tlegrand): Remove this check. Already taken care of in |
// ACMCodecDB::CodecNumber(). |
// Check if the payload-type is valid |
- if (!ACMCodecDB::ValidPayloadType(send_codec.pltype)) { |
+ if (!RentACodec::IsPayloadTypeValid(send_codec.pltype)) { |
WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceAudioCoding, dummy_id, |
"Invalid payload-type %d for %s.", send_codec.pltype, |
send_codec.plname); |