[mod_opus] fix remote codec rate to match.
This commit is contained in:
parent
5e914efc8c
commit
7bc999309c
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue