FS-9660: Fix BW calculation for SDP media clause

The AS descriptor for SDP b= lines is already defined in kilobits/second.
Fixes an issue with extremely low bitrate videos when a SDP media clause has
its own b=AS: line specified.
This commit is contained in:
Josh Allmann 2016-10-21 23:06:48 +00:00 committed by Mike Jerris
parent fb40ef0d2a
commit 5e302a6982
1 changed files with 1 additions and 1 deletions

View File

@ -4710,7 +4710,7 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s
for (bw = m->m_bandwidths; bw; bw = bw->b_next) {
if (bw->b_modifier == sdp_bw_as && !tias) {
v_engine->sdp_bw = bw->b_value / 1024;
v_engine->sdp_bw = bw->b_value;
} else if (bw->b_modifier == sdp_bw_tias) {
tias = 1;
v_engine->sdp_bw = bw->b_value / 1024;