Compare commits

...

2 Commits

Author SHA1 Message Date
shaunjstokes f3647b8c2f
Merge 2cb7ca2bbc into 5cb74797fe 2025-01-17 16:41:39 +00:00
shaunjstokes 2cb7ca2bbc
Update switch_core_media.c - Patch for #2226
Patch for #2226
2024-10-14 13:18:57 +02:00
1 changed files with 4 additions and 0 deletions

View File

@ -5517,6 +5517,10 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s
uint32_t bit_rate = imp->bits_per_second;
uint32_t codec_rate = imp->samples_per_second;
if (!strcasecmp(map->rm_encoding, "opus")) {
codec_rate = imp->actual_samples_per_second;
}
if (imp->codec_type != SWITCH_CODEC_TYPE_AUDIO) {
continue;
}