From: Mike Jerris Date: Tue, 7 Jul 2015 16:13:57 +0000 (-0500) Subject: Merge pull request #327 in FS/freeswitch from ~DRAGOS_OANCEA/freeswitch-dragos:opus... X-Git-Tag: v1.6.2~325 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b76e4ade9d11f1d6199e7dfa0a378975ada8fda;p=thirdparty%2Ffreeswitch.git Merge pull request #327 in FS/freeswitch from ~DRAGOS_OANCEA/freeswitch-dragos:opus-keep-fec-on to master * commit 'b3f453b02f62da450681c4b584bda838134c1317': FS-7772: mod_opus: add functionality to keep FEC enabled on the encoder by modifying the bitrate if packet loss changes (Opus codec specific behaviour). --- 5b76e4ade9d11f1d6199e7dfa0a378975ada8fda diff --cc src/mod/codecs/mod_opus/mod_opus.c index 22cef329cd,9112b46282..02287e4995 --- a/src/mod/codecs/mod_opus/mod_opus.c +++ b/src/mod/codecs/mod_opus/mod_opus.c @@@ -825,10 -880,11 +880,11 @@@ SWITCH_MODULE_LOAD_FUNCTION(mod_opus_lo switch_opus_encode, /* function to encode raw data into encoded data */ switch_opus_decode, /* function to decode encoded data into raw data */ switch_opus_destroy); /* deinitalize a codec handle using this implementation */ + codec_interface->implementations->codec_control = switch_opus_control; - bytes += 160; - samples += 480; - mss += 10000; + bytes *= 2; + samples *= 2; + mss *= 2; }