From 6b7d5e5a9a04164c0f7ecc4cd9dc9ffdc729c5f5 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Sat, 13 Oct 2012 19:03:53 -0400 Subject: [PATCH] fix incorrect init values for mod_opus --- src/mod/codecs/mod_opus/mod_opus.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mod/codecs/mod_opus/mod_opus.c b/src/mod/codecs/mod_opus/mod_opus.c index d88e88fe43..4519eebaa4 100644 --- a/src/mod/codecs/mod_opus/mod_opus.c +++ b/src/mod/codecs/mod_opus/mod_opus.c @@ -181,8 +181,8 @@ static switch_status_t switch_opus_decode(switch_codec_t *codec, SWITCH_MODULE_LOAD_FUNCTION(mod_opus_load) { switch_codec_interface_t *codec_interface; - int samples = 80; - int bytes = 960; + int samples = 480; + int bytes = 80; int mss = 10000; int x = 0; int rate = 48000; @@ -193,9 +193,9 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_opus_load) SWITCH_ADD_CODEC(codec_interface, "OPUS (STANDARD)"); - for (x = 0; x < 2; x++) { + for (x = 0; x < 3; x++) { switch_core_codec_add_implementation(pool, codec_interface, SWITCH_CODEC_TYPE_AUDIO, /* enumeration defining the type of the codec */ - 115, /* the IANA code number */ + 116, /* the IANA code number */ "opus",/* the IANA code name */ NULL, /* default fmtp to send (can be overridden by the init function) */ rate, /* samples transferred per second */