| Index: webrtc/modules/audio_coding/main/acm2/acm_codec_database.cc
|
| diff --git a/webrtc/modules/audio_coding/main/acm2/acm_codec_database.cc b/webrtc/modules/audio_coding/main/acm2/acm_codec_database.cc
|
| index 59bb233eef92cb77976471bff7b83f23a6c8a3f9..b69f5457c1343f201d992ff1cf7648b67bc0ab4a 100644
|
| --- a/webrtc/modules/audio_coding/main/acm2/acm_codec_database.cc
|
| +++ b/webrtc/modules/audio_coding/main/acm2/acm_codec_database.cc
|
| @@ -244,7 +244,7 @@ int ACMCodecDB::CodecNumber(const CodecInst& codec_inst) {
|
| }
|
|
|
| // Checks the validity of payload type
|
| - if (!ValidPayloadType(codec_inst.pltype)) {
|
| + if (!RentACodec::IsPayloadTypeValid(codec_inst.pltype)) {
|
| return kInvalidPayloadtype;
|
| }
|
|
|
| @@ -348,11 +348,6 @@ int ACMCodecDB::CodecFreq(int codec_id) {
|
| return i < db.size() ? db[i].plfreq : -1;
|
| }
|
|
|
| -// Checks if the payload type is in the valid range.
|
| -bool ACMCodecDB::ValidPayloadType(int payload_type) {
|
| - return (payload_type >= 0) && (payload_type <= 127);
|
| -}
|
| -
|
| } // namespace acm2
|
|
|
| } // namespace webrtc
|
|
|