compiler warning cleanup (part 3 [getting old])

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2489 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2006-09-03 14:28:08 +00:00
parent f48d50f0ce
commit 231144f3b0
2 changed files with 4 additions and 4 deletions

View File

@ -264,7 +264,7 @@ static inline int8_t switch_bitpack_in(switch_bitpack_t *pack, switch_byte_t in)
pack->bytes++;
pack->bits_cur = pack->shiftby = 0;
} else {
pack->bits_cur = next;
pack->bits_cur = (switch_byte_t) next;
}
}

View File

@ -64,7 +64,7 @@ static switch_status_t switch_g726_init(switch_codec_t *codec, switch_codec_flag
if (!(encoding || decoding) || (!(handle = switch_core_alloc(codec->memory_pool, sizeof(*handle))))) {
return SWITCH_STATUS_FALSE;
} else {
handle->bytes = codec->implementation->encoded_bytes_per_frame;
handle->bytes = (switch_byte_t) codec->implementation->encoded_bytes_per_frame;
switch(handle->bytes) {
case 100:
@ -95,7 +95,7 @@ static switch_status_t switch_g726_init(switch_codec_t *codec, switch_codec_flag
g726_init_state(&handle->context);
codec->private_info = handle;
handle->bits_per_frame = (switch_byte_t) codec->implementation->bits_per_second / (codec->implementation->samples_per_second);
handle->bits_per_frame = (switch_byte_t) (codec->implementation->bits_per_second / (codec->implementation->samples_per_second));
handle->mode = (flags & SWITCH_CODEC_FLAG_AAL2 || strstr(codec->implementation->iananame, "AAL2"))
? SWITCH_BITPACK_MODE_AAL2 : SWITCH_BITPACK_MODE_RFC3551;
return SWITCH_STATUS_SUCCESS;
@ -144,7 +144,7 @@ static switch_status_t switch_g726_encode(switch_codec_t *codec,
for (x = 0; x < loops && new_len < *encoded_data_len; x++) {
int edata = handle->encoder(*ddp, AUDIO_ENCODING_LINEAR, context);
switch_bitpack_in(&handle->pack, edata);
switch_bitpack_in(&handle->pack, (switch_byte_t) edata);
ddp++;
}
switch_bitpack_done(&handle->pack);