summaryrefslogtreecommitdiff
path: root/modules/opus
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-03-04 15:28:51 +0100
committerGitHub <noreply@github.com>2017-03-04 15:28:51 +0100
commit4f43acb07de88433ce513079233040e3e7c2b9d6 (patch)
tree2b0f010a5cc0c0009b345310a13dd14db4263573 /modules/opus
parent5992d4e01e401b7913dc0a9f95229260fa388fe1 (diff)
aucodec: move list of aucodec to struct baresip (#221)
Diffstat (limited to 'modules/opus')
-rw-r--r--modules/opus/encode.c2
-rw-r--r--modules/opus/opus.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/opus/encode.c b/modules/opus/encode.c
index f7937c5..7ee1ca2 100644
--- a/modules/opus/encode.c
+++ b/modules/opus/encode.c
@@ -72,7 +72,7 @@ int opus_encode_update(struct auenc_state **aesp, const struct aucodec *ac,
struct auenc_state *aes;
struct opus_param prm, conf_prm;
opus_int32 fch, vbr;
- const struct aucodec *auc = aucodec_find("opus", 48000, 2);
+ const struct aucodec *auc = ac;
(void)param;
diff --git a/modules/opus/opus.c b/modules/opus/opus.c
index d1e9c24..78ed3bf 100644
--- a/modules/opus/opus.c
+++ b/modules/opus/opus.c
@@ -136,7 +136,7 @@ static int module_init(void)
debug("opus: fmtp=\"%s\"\n", fmtp);
- aucodec_register(&opus);
+ aucodec_register(baresip_aucodecl(), &opus);
return 0;
}