]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Merge pull request #327 in FS/freeswitch from ~DRAGOS_OANCEA/freeswitch-dragos:opus...
authorMike Jerris <mike@jerris.com>
Tue, 7 Jul 2015 16:13:57 +0000 (11:13 -0500)
committerMike Jerris <mike@jerris.com>
Tue, 7 Jul 2015 16:13:57 +0000 (11:13 -0500)
* 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).

1  2 
src/mod/codecs/mod_opus/mod_opus.c

index 22cef329cd3a461ae85fb13ac3d6971f17e3de6a,9112b46282c23a1db7bd2dcfc819602ed6febef5..02287e49959bb4c55631be69a2e9078fef22c70b
@@@ -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;
                
        }