[commit] r2462 - freeswitch/trunk/src/mod/codecs/mod_g726
Author: mikej Date: Wed Aug 30 19:58:14 2006 New Revision: 2462 Modified: freeswitch/trunk/src/mod/codecs/mod_g726/mod_g726.c Log: tweak. still wip. 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 Wed Aug 30 19:58:14 2006 @@ -64,7 +64,7 @@ } else { g726_init_state(&handle->context); codec->private_info = handle; - handle->bits_per_frame = codec->implementation->bits_per_second / (codec->implementation->samples_per_second); + handle->bits_per_frame = (uint8_t)(codec->implementation->bits_per_second / (codec->implementation->samples_per_second)); handle->ptr = handle->buf; return SWITCH_STATUS_SUCCESS; } @@ -147,7 +147,7 @@ uint32_t new_len = 0; int16_t *ddp = decoded_data; uint8_t *edp = encoded_data; - int x; + uint32_t x; uint32_t loops = decoded_data_len / (sizeof(*ddp)); for (x = 0; x < loops && new_len < *encoded_data_len; x++) { @@ -184,7 +184,7 @@ rdata = edata; ndata = edata; - *handle->ptr += (edata << remain); + *handle->ptr += (uint8_t)(edata << remain); *handle->ptr = ndata; handle->bbits = 0;
participants (1)
-
Freeswitch SVN