Index: webrtc/modules/audio_coding/neteq/neteq_impl.cc |
diff --git a/webrtc/modules/audio_coding/neteq/neteq_impl.cc b/webrtc/modules/audio_coding/neteq/neteq_impl.cc |
index 5e2116409db37cf528de76865e6578a6d1e4c4fc..171f733d91cd346f5258797e76d280eb802e9842 100644 |
--- a/webrtc/modules/audio_coding/neteq/neteq_impl.cc |
+++ b/webrtc/modules/audio_coding/neteq/neteq_impl.cc |
@@ -457,6 +457,18 @@ rtc::Optional<CodecInst> NetEqImpl::GetDecoder(int payload_type) const { |
return rtc::Optional<CodecInst>(ci); |
} |
+const SdpAudioFormat* NetEqImpl::GetDecoderFormat(int payload_type) const { |
+ rtc::CritScope lock(&crit_sect_); |
+ const DecoderDatabase::DecoderInfo* const di = |
+ decoder_database_->GetDecoderInfo(payload_type); |
+ if (!di) { |
+ return nullptr; // Payload type not registered. |
+ } |
+ // This will return null if the payload type was registered without an |
+ // SdpAudioFormat. |
+ return di->GetFormat(); |
+} |
+ |
int NetEqImpl::SetTargetNumberOfChannels() { |
return kNotImplemented; |
} |