diff options
author | Boris Grozev <boris@jitsi.org> | 2014-07-28 18:03:52 +0300 |
---|---|---|
committer | Boris Grozev <boris@jitsi.org> | 2014-07-28 18:08:30 +0300 |
commit | 2a68a54342e4d9fd5c8aa7ac599cb84afab4abe2 (patch) | |
tree | 874630e0cd640756525cf2e19d1174005d4a7491 /src/net/java/sip | |
parent | 3e271c423d189f74ac4debefb391c3906c0acd10 (diff) | |
download | jitsi-2a68a54342e4d9fd5c8aa7ac599cb84afab4abe2.zip jitsi-2a68a54342e4d9fd5c8aa7ac599cb84afab4abe2.tar.gz jitsi-2a68a54342e4d9fd5c8aa7ac599cb84afab4abe2.tar.bz2 |
Parses 'opus/48000' as 'opus/48000/2' for better interoperability.
Diffstat (limited to 'src/net/java/sip')
-rw-r--r-- | src/net/java/sip/communicator/impl/protocol/sip/sdp/SdpUtils.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/sip/sdp/SdpUtils.java b/src/net/java/sip/communicator/impl/protocol/sip/sdp/SdpUtils.java index 1bf5bc1..fd53672 100644 --- a/src/net/java/sip/communicator/impl/protocol/sip/sdp/SdpUtils.java +++ b/src/net/java/sip/communicator/impl/protocol/sip/sdp/SdpUtils.java @@ -273,7 +273,7 @@ public class SdpUtils else { //if rtpmap was null, check whether we have previously registered - //the type in our dynamiyc payload type registry. and if that's + //the type in our dynamic payload type registry. and if that's //the case return it. MediaFormat fmt = ptRegistry.findFormat(payloadType); if (fmt != null) @@ -290,6 +290,12 @@ public class SdpUtils if (advp != null) advancedAttrMap = parseAdvancedAttributes(advp); + // Many implementations use opus as "opus/48000", while the specification + // mandates "opus/48000/2". Our upper layers only support 2 channels, so + // we patch it here. + if ("opus".equals(encoding)) + numChannels = 2; + //now create the format. MediaFormat format = SipActivator.getMediaService().getFormatFactory() |