Index: webrtc/media/engine/payload_type_mapper.cc |
diff --git a/webrtc/media/engine/payload_type_mapper.cc b/webrtc/media/engine/payload_type_mapper.cc |
index 0d449c4e4320872b2bb2674f492877af980838a1..496a39ae4838af61765748500ecdde457fc99875 100644 |
--- a/webrtc/media/engine/payload_type_mapper.cc |
+++ b/webrtc/media/engine/payload_type_mapper.cc |
@@ -12,9 +12,14 @@ |
#include "webrtc/common_types.h" |
#include "webrtc/media/base/mediaconstants.h" |
+#include "webrtc/modules/audio_coding/codecs/audio_format.h" |
namespace cricket { |
+webrtc::SdpAudioFormat AudioCodecToSdpAudioFormat(const AudioCodec& ac) { |
+ return webrtc::SdpAudioFormat(ac.name, ac.clockrate, ac.channels, ac.params); |
+} |
+ |
PayloadTypeMapper::PayloadTypeMapper() |
// RFC 3551 reserves payload type numbers in the range 96-127 exclusively |
// for dynamic assignment. Once those are used up, it is recommended that |