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
5512
5512
}
5513
5513
}
5514
5514
5515
+ if (fmtp_remote_codec_rate) {
5516
+ remote_codec_rate = fmtp_remote_codec_rate;
5517
+ }
5515
5518
for (i = 0; i < smh->mparams->num_codecs && i < total_codecs; i++) {
5516
5519
const switch_codec_implementation_t *imp = codec_array[i];
5517
5520
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
5533
5536
} else {
5534
5537
match = (!strcasecmp(rm_encoding, imp->iananame) &&
5535
5538
((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;
5540
5540
}
5541
5541
5542
5542
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