From 81b4ee34d5f983415a479089d0a5f17fc30e4f6e Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 8 Jul 2022 13:58:20 -0400 Subject: [PATCH] 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 (cherry picked from commit 12d59b06ee4de46e21076cb4462c6be88deeac37) --- daemon/codec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/codec.c b/daemon/codec.c index 50642d0c9..7b1aa7948 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -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);