]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
housekeeping.. *tap* *tap* housekeeping...
authorBrian West <brian@freeswitch.org>
Sun, 27 Jan 2008 05:37:58 +0000 (05:37 +0000)
committerBrian West <brian@freeswitch.org>
Sun, 27 Jan 2008 05:37:58 +0000 (05:37 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7386 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/codecs/mod_g711/mod_g711.c
src/mod/codecs/mod_g723_1/mod_g723_1.c
src/mod/codecs/mod_g726/mod_g726.c
src/mod/codecs/mod_g729/mod_g729.c
src/mod/codecs/mod_gsm/mod_gsm.c
src/mod/codecs/mod_h26x/mod_h26x.c
src/mod/codecs/mod_ilbc/mod_ilbc.c
src/mod/codecs/mod_l16/mod_l16.c

index 36b9cd36b41ccd33e149874bf108adec377ae6c2..9ec6a9cbad004fdb95a0748e565987ddb6297f1b 100644 (file)
@@ -26,7 +26,7 @@
  * Anthony Minessale II <anthmct@yahoo.com>
  *
  *
- * mod_g711codec.c -- G711 Ulaw/Alaw Codec Module
+ * mod_g711.c -- G711 Ulaw/Alaw Codec Module
  *
  */
 #include <switch.h>
index 2dcb16913dd1a9efb0e729c0f1a18f033ec1d7ca..78afa6322da527a99709fe7bd47f92fbc84e459a 100644 (file)
@@ -28,7 +28,7 @@
  *
  * The g723.1 codec itself is not distributed with this module.
  *
- * mod_g723.c -- G723.1 Codec Module
+ * mod_g723_1.c -- G723.1 Codec Module
  *
  */
 #include "switch.h"
@@ -97,7 +97,6 @@ static switch_status_t switch_g723_init(switch_codec_t *codec, switch_codec_flag
 #endif
 }
 
-
 static switch_status_t switch_g723_destroy(switch_codec_t *codec)
 {
 #ifndef G723_PASSTHROUGH
index 11d4781d49af5087c2a4d15ae5bdbf481a97328f..047b00b96a2c82c1b6fb0656d5ae7bee99a20ceb 100644 (file)
@@ -39,7 +39,6 @@ SWITCH_MODULE_DEFINITION(mod_g726, mod_g726_load, NULL, NULL);
 typedef int (*encoder_t) (int, int, g726_state *);
 typedef int (*decoder_t) (int, int, g726_state *);
 
-
 typedef struct {
        g726_state context;
        switch_byte_t bits_per_frame;
@@ -101,15 +100,12 @@ static switch_status_t switch_g726_init(switch_codec_t *codec, switch_codec_flag
        }
 }
 
-
 static switch_status_t switch_g726_destroy(switch_codec_t *codec)
 {
        codec->private_info = NULL;
        return SWITCH_STATUS_SUCCESS;
 }
 
-
-
 static switch_status_t switch_g726_encode(switch_codec_t *codec,
                                                                                  switch_codec_t *other_codec,
                                                                                  void *decoded_data,
@@ -117,11 +113,9 @@ static switch_status_t switch_g726_encode(switch_codec_t *codec,
                                                                                  uint32_t decoded_rate, void *encoded_data, uint32_t * encoded_data_len, uint32_t * encoded_rate,
                                                                                  unsigned int *flag)
 {
-
        g726_handle_t *handle = codec->private_info;
        g726_state *context = &handle->context;
        uint32_t len = codec->implementation->bytes_per_frame;
-       //uint32_t elen = codec->implementation->encoded_bytes_per_frame;
 
        if (!context) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error!\n");
@@ -155,8 +149,6 @@ static switch_status_t switch_g726_encode(switch_codec_t *codec,
        return SWITCH_STATUS_SUCCESS;
 }
 
-
-
 static switch_status_t switch_g726_decode(switch_codec_t *codec,
                                                                                  switch_codec_t *other_codec,
                                                                                  void *encoded_data,
@@ -164,7 +156,6 @@ static switch_status_t switch_g726_decode(switch_codec_t *codec,
                                                                                  uint32_t encoded_rate, void *decoded_data, uint32_t * decoded_data_len, uint32_t * decoded_rate,
                                                                                  unsigned int *flag)
 {
-
        g726_handle_t *handle = codec->private_info;
        g726_state *context = &handle->context;
        int16_t *ddp = decoded_data;
@@ -195,13 +186,9 @@ static switch_status_t switch_g726_decode(switch_codec_t *codec,
                return SWITCH_STATUS_FALSE;
        }
 
-
        return SWITCH_STATUS_SUCCESS;
-
 }
 
-
-
 /* Registration */
 
 static switch_codec_implementation_t g726_16k_implementation = {
@@ -225,7 +212,6 @@ static switch_codec_implementation_t g726_16k_implementation = {
        /*.destroy */ switch_g726_destroy,
 };
 
-
 static switch_codec_implementation_t g726_24k_implementation = {
        /*.codec_type */ SWITCH_CODEC_TYPE_AUDIO,
        /*.ianacode */ 126,
@@ -289,8 +275,6 @@ static switch_codec_implementation_t g726_40k_implementation = {
        /*.destroy */ switch_g726_destroy,
 };
 
-
-
 static switch_codec_implementation_t aal2_g726_16k_implementation = {
        /*.codec_type */ SWITCH_CODEC_TYPE_AUDIO,
        /*.ianacode */ 124,
@@ -312,7 +296,6 @@ static switch_codec_implementation_t aal2_g726_16k_implementation = {
        /*.destroy */ switch_g726_destroy,
 };
 
-
 static switch_codec_implementation_t aal2_g726_24k_implementation = {
        /*.codec_type */ SWITCH_CODEC_TYPE_AUDIO,
        /*.ianacode */ 123,
index 9d453ae1ef240cf58c1076f46d6711a4d7bcec63..fc0073041cf96901abd83320edb21faa6d5db1b3 100644 (file)
@@ -78,7 +78,6 @@ static switch_status_t switch_g729_init(switch_codec_t *codec, switch_codec_flag
                codec->private_info = context;
 
                return SWITCH_STATUS_SUCCESS;
-
        }
 #endif
 }
@@ -151,7 +150,6 @@ static switch_status_t switch_g729_decode(switch_codec_t *codec,
 
        if (!context) {
                return SWITCH_STATUS_FALSE;
-
        }
 
        if (encoded_data_len % 2 == 0) {
@@ -192,11 +190,8 @@ static switch_status_t switch_g729_decode(switch_codec_t *codec,
                        }
 
                        if (new_len <= *decoded_data_len) {
-
                                *decoded_data_len = new_len;
-
                        } else {
-
                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "buffer overflow!!!\n");
                                return SWITCH_STATUS_FALSE;
 
index 2fdcd6b7ca9bef4ea237d17fd6b7b8ef857c8d0f..d0489bd5fec95501fd23b3278d8632eb3b3cd3fe 100644 (file)
@@ -26,7 +26,7 @@
  * Anthony Minessale II <anthmct@yahoo.com>
  * Michael Jerris <mike@jerris.com>
  *
- * mod_codec_gsm.c -- gsm Codec Module
+ * mod_gsm.c -- gsm Codec Module
  *
  */
 #include "switch.h"
index e697dfa813fd43d790c1ab903f5bc1f6013aebab..083ea5d09ab7ad9fc7b613f317125c2c818565ed 100644 (file)
@@ -71,7 +71,6 @@ static switch_status_t switch_h26x_decode(switch_codec_t *codec,
 
 static switch_status_t switch_h26x_destroy(switch_codec_t *codec)
 {
-       
        return SWITCH_STATUS_SUCCESS;
 }
 
index 063965410c5f3285ec6c4ffef34bcccb6a8aa628..493f563beff97fdbd0cdf4dcad2e71aa306efae0 100644 (file)
@@ -51,7 +51,6 @@ static switch_status_t switch_ilbc_init(switch_codec_t *codec, switch_codec_flag
        int encoding, decoding;
        uint8_t ms = (uint8_t) (codec->implementation->microseconds_per_frame / 1000);
 
-
        if (ms != 20 && ms != 30) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "invalid speed! (I should never happen)\n");
                return SWITCH_STATUS_FALSE;
index f6540d2b5cf1fcacfc0a01e57560efaec07a46d2..606804ce59f6820a0c4e213f53c273c230d58720 100644 (file)
@@ -26,7 +26,7 @@
  * Anthony Minessale II <anthmct@yahoo.com>
  *
  *
- * mod_rawaudio.c -- Raw Signed Linear Codec
+ * mod_l16.c -- Raw Signed Linear Codec
  *
  */
 #include <switch.h>