[Freeswitch-svn] [commit] r7561 - freeswitch/trunk/src/mod/codecs/mod_voipcodecs

Freeswitch SVN brian at freeswitch.org
Fri Feb 8 15:29:20 EST 2008


Author: brian
Date: Fri Feb  8 15:29:20 2008
New Revision: 7561

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

Log:
fix gsm woops

Modified: freeswitch/trunk/src/mod/codecs/mod_voipcodecs/mod_voipcodecs.c
==============================================================================
--- freeswitch/trunk/src/mod/codecs/mod_voipcodecs/mod_voipcodecs.c	(original)
+++ freeswitch/trunk/src/mod/codecs/mod_voipcodecs/mod_voipcodecs.c	Fri Feb  8 15:29:20 2008
@@ -158,7 +158,7 @@
 		return SWITCH_STATUS_FALSE;
 	}
 
-	*encoded_data_len = gsm0610_encode(&context->encoder_object, (uint8_t *) encoded_data, (int16_t *) decoded_data, decoded_data_len / 2);
+	*encoded_data_len = gsm0610_encode(&context->encoder_object, (uint8_t *) encoded_data, (int16_t *) decoded_data, decoded_data_len / decoded_data_len);
 
 	return SWITCH_STATUS_SUCCESS;
 }
@@ -176,7 +176,7 @@
 		return SWITCH_STATUS_FALSE;
 	}
 
-	*decoded_data_len = (2 * gsm0610_decode(&context->decoder_object, (int16_t *) decoded_data, (uint8_t *) encoded_data, encoded_data_len));
+	*decoded_data_len = (2 * gsm0610_decode(&context->decoder_object, (int16_t *) decoded_data, (uint8_t *) encoded_data, encoded_data_len / 33));
 
 	return SWITCH_STATUS_SUCCESS;
 }



More information about the Freeswitch-svn mailing list