Skip to content

Commit

Permalink
Update switch_core_media.c - Patch for signalwire#2226
Browse files Browse the repository at this point in the history
Patch for signalwire#2226
  • Loading branch information
shaunjstokes authored Oct 14, 2024
1 parent 9599739 commit 2cb7ca2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/switch_core_media.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2cb7ca2

Please sign in to comment.