From: doancea Date: Mon, 11 May 2015 14:48:49 +0000 (+0200) Subject: opus@8000h : with this change there RTP timestamps will be incremented with 960 ... X-Git-Tag: v1.4.19~6^2~20^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccbef9e0c7e31c410ce08b5276c3e2e5a2f69883;p=thirdparty%2Ffreeswitch.git opus@8000h : with this change there RTP timestamps will be incremented with 960 (20 ms ptime) - per RFC , and the frame size will be 160 samples. --- diff --git a/src/mod/codecs/mod_opus/mod_opus.c b/src/mod/codecs/mod_opus/mod_opus.c index 346f254a50..21dc569c6b 100644 --- a/src/mod/codecs/mod_opus/mod_opus.c +++ b/src/mod/codecs/mod_opus/mod_opus.c @@ -547,7 +547,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_opus_load) } - samples = 80; + samples = 480; bytes = 160; mss = 10000; rate = 8000; @@ -599,7 +599,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_opus_load) switch_opus_destroy); /* deinitalize a codec handle using this implementation */ bytes += 160; - samples += 80; + samples += 480; mss += 10000; }