[Freeswitch-svn] [commit] r7454 - freeswitch/trunk/src/mod/codecs/mod_g726

Freeswitch SVN brian at freeswitch.org
Fri Feb 1 01:36:42 EST 2008


Author: brian
Date: Fri Feb  1 01:36:42 2008
New Revision: 7454

Modified:
   freeswitch/trunk/src/mod/codecs/mod_g726/mod_g726.c

Log:
wth was I thinking here hehe

Modified: freeswitch/trunk/src/mod/codecs/mod_g726/mod_g726.c
==============================================================================
--- freeswitch/trunk/src/mod/codecs/mod_g726/mod_g726.c	(original)
+++ freeswitch/trunk/src/mod/codecs/mod_g726/mod_g726.c	Fri Feb  1 01:36:42 2008
@@ -51,23 +51,7 @@
             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;



More information about the Freeswitch-svn mailing list