From 10dc977714421b0e297b001af935f7fe038fe82b 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 efd5f0224..dfeabfc16 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);