]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10642: [mod_amr], [mod_amrwb]: mark AMR and AMRWB as VBR (don't let mod_native_fi... 254/head
authorDragos Oancea <droancea@yahoo.com>
Mon, 4 Sep 2017 14:25:39 +0000 (10:25 -0400)
committerDragos Oancea <dragos@signalwire.com>
Wed, 22 Jan 2020 12:48:30 +0000 (12:48 +0000)
src/mod/codecs/mod_amr/mod_amr.c
src/mod/codecs/mod_amrwb/mod_amrwb.c

index 5f18feab7cf5310c6adc93c0e778e5c5078a3f93..b36b4c9aa31a5d67176ef7e10596ea1cf740e63d 100644 (file)
@@ -655,11 +655,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_amr_load)
                                                                                 20000, /* number of microseconds per frame */
                                                                                 160,   /* number of samples per frame */
                                                                                 320,   /* number of bytes per frame decompressed */
-#ifndef AMR_PASSTHROUGH
-                                                                                SWITCH_AMR_OUT_MAX_SIZE,       /* number of bytes per frame compressed */
-#else
                                                                                 0,     /* number of bytes per frame compressed */
-#endif
                                                                                 1,     /* number of channels represented */
                                                                                 1,     /* number of frames per network packet */
                                                                                 switch_amr_init,       /* function to initialize a codec handle using this implementation */
@@ -680,11 +676,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_amr_load)
                                                                                 20000, /* number of microseconds per frame */
                                                                                 160,   /* number of samples per frame */
                                                                                 320,   /* number of bytes per frame decompressed */
-#ifndef AMR_PASSTHROUGH
-                                                                                SWITCH_AMR_OUT_MAX_SIZE,       /* number of bytes per frame compressed */
-#else
                                                                                 0,     /* number of bytes per frame compressed */
-#endif
                                                                                 1,     /* number of channels represented */
                                                                                 1,     /* number of frames per network packet */
                                                                                 switch_amr_init,       /* function to initialize a codec handle using this implementation */
index 19cde02adf71a2ec418acbeb605829a7f4e3ff5c..a2f8a2f6048647551c5dedfab68fa50fcf39c7d9 100644 (file)
@@ -561,8 +561,6 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_amrwb_load)
 
        switch_console_set_complete("add amrwb_debug on");
        switch_console_set_complete("add amrwb_debug off");
-#else
-#define SWITCH_AMRWB_OUT_MAX_SIZE 0
 #endif
 
        SWITCH_ADD_CODEC(codec_interface, "AMR-WB / Octet Aligned");
@@ -571,7 +569,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_amrwb_load)
 
        switch_core_codec_add_implementation(pool, codec_interface,
                                                                                 SWITCH_CODEC_TYPE_AUDIO, 100, "AMR-WB", default_fmtp_oa,
-                                                                                16000, 16000, 23850, 20000, 320, 640, SWITCH_AMRWB_OUT_MAX_SIZE, 1, 1,
+                                                                                16000, 16000, 23850, 20000, 320, 640, 0, 1, 1,
                                                                                 switch_amrwb_init, switch_amrwb_encode, switch_amrwb_decode, switch_amrwb_destroy);
 #ifndef AMRWB_PASSTHROUGH
        codec_interface->implementations->codec_control = switch_amrwb_control;
@@ -583,7 +581,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_amrwb_load)
 
        switch_core_codec_add_implementation(pool, codec_interface,
                                                                                 SWITCH_CODEC_TYPE_AUDIO, 110, "AMR-WB", default_fmtp_be,
-                                                                                16000, 16000, 23850, 20000, 320, 640, SWITCH_AMRWB_OUT_MAX_SIZE, 1, 1,
+                                                                                16000, 16000, 23850, 20000, 320, 640, 0, 1, 1,
                                                                                 switch_amrwb_init, switch_amrwb_encode, switch_amrwb_decode, switch_amrwb_destroy);
 #ifndef AMRWB_PASSTHROUGH
        codec_interface->implementations->codec_control = switch_amrwb_control;