File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5512,6 +5512,9 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s
55125512 }
55135513 }
55145514
5515+ if (fmtp_remote_codec_rate) {
5516+ remote_codec_rate = fmtp_remote_codec_rate;
5517+ }
55155518 for (i = 0; i < smh->mparams->num_codecs && i < total_codecs; i++) {
55165519 const switch_codec_implementation_t *imp = codec_array[i];
55175520 uint32_t bit_rate = imp->bits_per_second;
@@ -5533,10 +5536,7 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s
55335536 } else {
55345537 match = (!strcasecmp(rm_encoding, imp->iananame) &&
55355538 ((map->rm_pt < 96 && imp->ianacode < 96) || (map->rm_pt > 95 && imp->ianacode > 95)) &&
5536- (remote_codec_rate == codec_rate || fmtp_remote_codec_rate == imp->actual_samples_per_second)) ? 1 : 0;
5537- if (fmtp_remote_codec_rate) {
5538- remote_codec_rate = fmtp_remote_codec_rate;
5539- }
5539+ (remote_codec_rate == codec_rate || remote_codec_rate == imp->actual_samples_per_second)) ? 1 : 0;
55405540 }
55415541
55425542 if (match && bit_rate && map_bit_rate && map_bit_rate != bit_rate && strcasecmp(map->rm_encoding, "ilbc") &&
You can’t perform that action at this time.
0 commit comments