Commit d3d482fc authored by smorlat's avatar smorlat
Browse files

forgot the case where upload bandwidth is infinite (ie -1)

git-svn-id: svn+ssh:// 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent 1c306e4d
......@@ -194,9 +194,8 @@ This codec is variable bitrate. The 8kbit/s mode is interesting when having a lo
is not very good. We 'd better use its 15kbt/s mode when we have enough bandwidth*/
static int get_codec_bitrate(LinphoneCore *lc, const PayloadType *pt){
int upload_bw=linphone_core_get_upload_bandwidth(lc);
if (upload_bw>128 || (upload_bw>32 && !linphone_core_video_enabled(lc)) ) {
if (bandwidth_is_greater(upload_bw,129) || (bandwidth_is_greater(upload_bw,33) && !linphone_core_video_enabled(lc)) ) {
if (strcmp(pt->mime_type,"speex")==0 && pt->clock_rate==8000){
ms_message("Let's use speex at 15kbit/s");
return 15000;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment