Index: webrtc/modules/audio_coding/main/acm2/rent_a_codec.h |
diff --git a/webrtc/modules/audio_coding/main/acm2/rent_a_codec.h b/webrtc/modules/audio_coding/main/acm2/rent_a_codec.h |
index 24ae121a478c44f10f339d81afd035c71243029b..a911e0f57f9961b60fedddfaf5f245dbede3203c 100644 |
--- a/webrtc/modules/audio_coding/main/acm2/rent_a_codec.h |
+++ b/webrtc/modules/audio_coding/main/acm2/rent_a_codec.h |
@@ -152,6 +152,11 @@ class RentACodec { |
int sampling_freq_hz, |
int channels); |
static bool IsCodecValid(const CodecInst& codec_inst); |
+ |
+ static inline bool IsPayloadTypeValid(int payload_type) { |
+ return payload_type >= 0 && payload_type <= 127; |
+ } |
+ |
static rtc::ArrayView<const CodecInst> Database(); |
static rtc::Maybe<bool> IsSupportedNumChannels(CodecId codec_id, |