git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2486 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2006-09-03 13:29:13 +00:00
parent e1d499827d
commit 6a91e4f3f9
3 changed files with 20 additions and 21 deletions

View File

@@ -138,8 +138,7 @@ static switch_status_t switch_g726_encode(switch_codec_t *codec,
uint32_t new_len = 0;
int16_t *ddp = decoded_data;
uint8_t *edp = encoded_data;
int x;
uint32_t loops = decoded_data_len / (sizeof(*ddp));
uint32_t x, loops = decoded_data_len / (sizeof(*ddp));
switch_bitpack_init(&handle->pack, handle->bits_per_frame, edp, *encoded_data_len, handle->mode);