Bug 810353 - Offer Opus as stereo instead of mono, r=ehugg
authorTimothy B. Terriberry <tterribe@vt.edu>
Thu, 15 Nov 2012 15:09:39 -0800
changeset 113424 1f379e0e56741bf913c3ac04f94e8030f641053a
parent 113423 b1b0fbcbdf3b01f8015b6c3d70706e450c37c1fb
child 113425 244493403e8922b6fcf4e6abe7e0248d804939d2
push id18149
push usertterriberry@mozilla.com
push dateThu, 15 Nov 2012 23:16:04 +0000
treeherdermozilla-inbound@244493403e89 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehugg
bugs810353
milestone19.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 810353 - Offer Opus as stereo instead of mono, r=ehugg
media/webrtc/signaling/src/sipcc/core/gsm/gsm_sdp.c
--- a/media/webrtc/signaling/src/sipcc/core/gsm/gsm_sdp.c
+++ b/media/webrtc/signaling/src/sipcc/core/gsm/gsm_sdp.c
@@ -1213,17 +1213,17 @@ gsmsdp_set_media_attributes (uint32_t me
             break;
 
         case RTP_OPUS:
             (void) sdp_attr_set_rtpmap_encname(sdp_p, level, 0, a_inst,
                                                SIPSDP_ATTR_ENCNAME_OPUS);
 
             (void) sdp_attr_set_rtpmap_clockrate(sdp_p, level, 0, a_inst,
             		RTPMAP_OPUS_CLOCKRATE);
-
+            (void) sdp_attr_set_rtpmap_num_chan (sdp_p, level, 0, a_inst, 2);
 
             /* a=fmtp options */
             if (maxavbitrate || maxcodedaudiobw || usedtx || stereo || useinbandfec || cbr) {
                 if (sdp_add_new_attr(sdp_p, level, 0, SDP_ATTR_FMTP, &a_inst2)
                     != SDP_SUCCESS) {
                     return;
                 }