Bug 979716: drop opus bitrate to 16000bps to reduce mobile cpu use r=jmspeex a=lmandel
authorRandell Jesup <rjesup@jesup.org>
Tue, 01 Jul 2014 05:10:49 -0400
changeset 207636 4fcfe64f7f8e8796ab1cf89b88b9a770e20c33e0
parent 207635 41791c50ff7e9371c2c078de5436aa42983d8c9f
child 207637 344380cf321e011e352b76fdcb068389d09dbfb1
push id3741
push userasasaki@mozilla.com
push dateMon, 21 Jul 2014 20:25:18 +0000
treeherdermozilla-beta@4d6f46f5af68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmspeex, lmandel
bugs979716
milestone32.0a2
Bug 979716: drop opus bitrate to 16000bps to reduce mobile cpu use r=jmspeex a=lmandel
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
@@ -3425,17 +3425,17 @@ gsmsdp_negotiate_codec (fsmdef_dcb_t *dc
 
                             sdp_attr_get_fmtp_cbr (sdp_p->dest_sdp, level, 0, 1,
                                 &payload_info->opus.cbr);
 
                             /* Copied from media/webrtc/trunk/src/modules/
                                audio_coding/main/source/acm_codec_database.cc */
                             payload_info->audio.frequency = 48000;
                             payload_info->audio.packet_size = 960;
-                            payload_info->audio.bitrate = 32000;
+                            payload_info->audio.bitrate = 16000; // Increase when we have higher capture rates
                             break;
 
                         case RTP_ISAC:
                             /* TODO: Update these from proper SDP constructs */
                             payload_info->audio.frequency = 16000;
                             payload_info->audio.packet_size = 480;
                             payload_info->audio.bitrate = 32000;
                             break;