]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
wth was I thinking here hehe
authorBrian West <brian@freeswitch.org>
Fri, 1 Feb 2008 06:36:42 +0000 (06:36 +0000)
committerBrian West <brian@freeswitch.org>
Fri, 1 Feb 2008 06:36:42 +0000 (06:36 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7454 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/codecs/mod_g726/mod_g726.c

index 0a1c84bb9287cb033f9b4db2d3fbaced54f3a1ee..657197c80815c7792878c9dace541fe50f439f31 100644 (file)
@@ -51,23 +51,7 @@ static switch_status_t switch_g726_init(switch_codec_t *codec, switch_codec_flag
             packing = G726_PACKING_LEFT;
         } 
 
-               switch (codec->implementation->bits_per_second) {
-               case 40000:
-            g726_init(context, codec->implementation->bits_per_second, G726_ENCODING_LINEAR, packing);
-                       break;
-               case 32000:
-            g726_init(context, codec->implementation->bits_per_second, G726_ENCODING_LINEAR, packing);
-                       break;
-               case 24000:
-            g726_init(context, codec->implementation->bits_per_second, G726_ENCODING_LINEAR, packing);
-                       break;
-               case 16000:
-            g726_init(context, codec->implementation->bits_per_second, G726_ENCODING_LINEAR, packing);
-                       break;
-               default:
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "invalid Encoding Size %d!\n", codec->implementation->encoded_bytes_per_frame);
-                       return SWITCH_STATUS_FALSE;
-               }
+        g726_init(context, codec->implementation->bits_per_second, G726_ENCODING_LINEAR, packing);
 
                codec->private_info = context;
                return SWITCH_STATUS_SUCCESS;