From 0d38a7a444a1e7b214c917f0f08b98e1d4b42964 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Turnel?= Date: Fri, 29 Sep 2017 11:53:22 +0200 Subject: [PATCH] Removed default bitrate limitation --- coreapi/linphonecall.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index ac282936d..73a8530aa 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -3116,9 +3116,8 @@ static int get_video_bw(LinphoneCall *call, const SalMediaDescription *md, const else if (md->bandwidth>0) { /*case where b=AS is given globally, not per stream*/ remote_bw=get_remaining_bandwidth_for_video(md->bandwidth,call->audio_bw); - } else { - remote_bw = lp_config_get_int(call->core->config, "net", "default_max_bandwidth", 1500); } + bw=get_min_bandwidth(get_remaining_bandwidth_for_video(linphone_core_get_upload_bandwidth(call->core),call->audio_bw),remote_bw); return bw; }