[Freeswitch-svn] [commit] r7573 - freeswitch/trunk/src/mod/codecs/mod_voipcodecs
Freeswitch SVN
brian at freeswitch.org
Sat Feb 9 18:32:50 EST 2008
Author: brian
Date: Sat Feb 9 18:32:49 2008
New Revision: 7573
Modified:
freeswitch/trunk/src/mod/codecs/mod_voipcodecs/mod_voipcodecs.c
Log:
update mod_voipcodecs to lpc10 and fix my ima_adpcm fsck up
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 Sat Feb 9 18:32:49 2008
@@ -90,7 +90,7 @@
return SWITCH_STATUS_FALSE;
}
- *encoded_data_len = lpc10_encode(&context->encoder_object, (uint8_t *) encoded_data, (int16_t *) decoded_data, decoded_data_len / 360);
+ *encoded_data_len = lpc10_encode(&context->encoder_object, (uint8_t *) encoded_data, (int16_t *) decoded_data, decoded_data_len / 2);
return SWITCH_STATUS_SUCCESS;
}
@@ -108,7 +108,7 @@
return SWITCH_STATUS_FALSE;
}
- *decoded_data_len = (2 * lpc10_decode(&context->decoder_object, (int16_t *) decoded_data, (uint8_t *) encoded_data, encoded_data_len / 7));
+ *decoded_data_len = (2 * lpc10_decode(&context->decoder_object, (int16_t *) decoded_data, (uint8_t *) encoded_data, encoded_data_len));
return SWITCH_STATUS_SUCCESS;
}
@@ -538,7 +538,7 @@
return SWITCH_STATUS_FALSE;
}
- *decoded_data_len = ima_adpcm_decode(&context->decoder_object, (int16_t *) decoded_data, (uint8_t *) encoded_data, encoded_data_len);
+ *decoded_data_len = (2 * ima_adpcm_decode(&context->decoder_object, (int16_t *) decoded_data, (uint8_t *) encoded_data, encoded_data_len));
return SWITCH_STATUS_SUCCESS;
}
More information about the Freeswitch-svn
mailing list