From d3d482fc873ae86eaacbadff2d061d46a6f673f6 Mon Sep 17 00:00:00 2001 From: smorlat Date: Thu, 8 Oct 2009 19:31:03 +0000 Subject: [PATCH] forgot the case where upload bandwidth is infinite (ie -1) git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@707 3f6dc0c8-ddfe-455d-9043-3cd528dc4637 --- linphone/coreapi/misc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/linphone/coreapi/misc.c b/linphone/coreapi/misc.c index 59a64b894..0d4baf42f 100644 --- a/linphone/coreapi/misc.c +++ b/linphone/coreapi/misc.c @@ -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; } }