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 45715607aae67cd44fdf429196cb112d54973ca7..96854b44cefa684424275bf2c4f97805b655a99c 100644 |
--- a/webrtc/modules/audio_coding/main/acm2/rent_a_codec.h |
+++ b/webrtc/modules/audio_coding/main/acm2/rent_a_codec.h |
@@ -181,6 +181,16 @@ class RentACodec { |
static rtc::Optional<NetEqDecoder> NetEqDecoderFromCodecId(CodecId codec_id, |
int num_channels); |
+ // Parse codec_inst and extract payload types. If the given CodecInst was for |
+ // the wrong sort of codec, return kSkip; otherwise, if the rate was illegal, |
+ // return kBadFreq; otherwise, update the given RTP timestamp rate (Hz) -> |
+ // payload type map and return kOk. |
+ enum class RegistrationResult { kOk, kSkip, kBadFreq }; |
+ static RegistrationResult RegisterCngPayloadType(std::map<int, int>* pt_map, |
+ const CodecInst& codec_inst); |
+ static RegistrationResult RegisterRedPayloadType(std::map<int, int>* pt_map, |
+ const CodecInst& codec_inst); |
+ |
RentACodec(); |
~RentACodec(); |