TT#185100 fix codec-set with bitrate for Opus

Allow override the bitrate if one is already set, as opus_init()
initially sets a default bitrate, which is then overridden by codec-set.

Change-Id: Id0253d23a8f5de977e30d296872ea1df01fdbfbc
pull/1525/head
Richard Fuchs 3 years ago
parent 3139a8a897
commit 12d59b06ee

@ -4050,7 +4050,7 @@ static int __codec_options_set1(struct call *call, struct rtp_payload_type *pt,
return 0;
}
// match - apply options
if (!pt->bitrate)
if (pt_parsed->bitrate)
pt->bitrate = pt_parsed->bitrate;
if (!pt->codec_opts.len && pt_parsed->codec_opts.len) {
str_free_dup(&pt->codec_opts);

Loading…
Cancel
Save