[mod_opus] fix remote codec rate to match.

This commit is contained in:
Dragos Oancea 2023-06-15 16:29:43 +03:00
parent 5e914efc8c
commit 7bc999309c
1 changed files with 4 additions and 0 deletions

View File

@ -314,6 +314,10 @@ static switch_status_t switch_opus_fmtp_parse(const char *fmtp, switch_codec_fmt
if (!switch_opus_acceptable_rate(codec_settings->sprop_maxcapturerate)) {
codec_settings->sprop_maxcapturerate = 0; /* value not supported */
}
if (codec_settings->sprop_maxcapturerate) {
codec_fmtp->actual_samples_per_second = codec_settings->sprop_maxcapturerate;
}
}
}
}