Browse Source

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 12d59b06ee)
mr10.5.2
Richard Fuchs 4 years ago
parent
commit
10dc977714
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/codec.c

+ 1
- 1
daemon/codec.c View File

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


Loading…
Cancel
Save