From ab879c654627fa53bfb78795db249f409a5f5784 Mon Sep 17 00:00:00 2001
From: Brian West <brian@freeswitch.org>
Date: Fri, 1 Feb 2008 06:36:42 +0000
Subject: [PATCH] wth was I thinking here hehe

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7454 d0543943-73ff-0310-b7d9-9358b9ac24b2
---
 src/mod/codecs/mod_g726/mod_g726.c | 18 +-----------------
 1 file changed, 1 insertion(+), 17 deletions(-)

diff --git a/src/mod/codecs/mod_g726/mod_g726.c b/src/mod/codecs/mod_g726/mod_g726.c
index 0a1c84bb92..657197c808 100644
--- a/src/mod/codecs/mod_g726/mod_g726.c
+++ b/src/mod/codecs/mod_g726/mod_g726.c
@@ -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;