Module: sems Branch: master Commit: f031c8385cd1e20a7d8119d2c7d0d9f1369c611c URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=f031c8385cd1e20a7d8119d2c7d0d9f1369c611c
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Sun Feb 23 01:13:55 2014 +0100 c/f:core:g726: using unsigned int for loop counters --- core/plug-in/adpcm/adpcm.c | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/core/plug-in/adpcm/adpcm.c b/core/plug-in/adpcm/adpcm.c index 4324181..ae2db28 100644 --- a/core/plug-in/adpcm/adpcm.c +++ b/core/plug-in/adpcm/adpcm.c @@ -151,7 +151,7 @@ static unsigned int g726_40_samples2bytes(long h_codec, unsigned int num_samples static int Pcm16_2_G726_16( unsigned char* out_buf, unsigned char* in_buf, unsigned int size, unsigned int channels, unsigned int rate, long h_codec ) { - int i, j; + unsigned int i, j; if (!h_codec) return -1; @@ -177,7 +177,7 @@ static int Pcm16_2_G726_16( unsigned char* out_buf, unsigned char* in_buf, unsig static int G726_16_2_Pcm16(unsigned char* out_buf, unsigned char* in_buf, unsigned int size, unsigned int channels, unsigned int rate, long h_codec ) { - int i, j; + unsigned int i, j; if (!h_codec) return -1; @@ -202,7 +202,7 @@ static int G726_16_2_Pcm16(unsigned char* out_buf, unsigned char* in_buf, unsign static int Pcm16_2_G726_24( unsigned char* out_buf, unsigned char* in_buf, unsigned int size, unsigned int channels, unsigned int rate, long h_codec ) { - int i, j; + unsigned int i, j; if (!h_codec) return -1; short* sample_buf = (short*)in_buf; @@ -229,7 +229,7 @@ static int Pcm16_2_G726_24( unsigned char* out_buf, unsigned char* in_buf, unsig static int G726_24_2_Pcm16( unsigned char* out_buf, unsigned char* in_buf, unsigned int size, unsigned int channels, unsigned int rate, long h_codec ) { - int i, j; + unsigned int i, j; if (!h_codec) return -1; @@ -258,7 +258,7 @@ static int G726_24_2_Pcm16( unsigned char* out_buf, unsigned char* in_buf, unsig static int Pcm16_2_G726_32( unsigned char* out_buf, unsigned char* in_buf, unsigned int size, unsigned int channels, unsigned int rate, long h_codec ) { - int i, j; + unsigned int i, j; if (!h_codec) return -1; short* sample_buf = (short*)in_buf; @@ -284,7 +284,7 @@ static int Pcm16_2_G726_32( unsigned char* out_buf, unsigned char* in_buf, unsig static int G726_32_2_Pcm16( unsigned char* out_buf, unsigned char* in_buf, unsigned int size, unsigned int channels, unsigned int rate, long h_codec ) { - int i, j; + unsigned int i, j; if (!h_codec) return -1; @@ -310,7 +310,7 @@ static int G726_32_2_Pcm16( unsigned char* out_buf, unsigned char* in_buf, unsig static int Pcm16_2_G726_40( unsigned char* out_buf, unsigned char* in_buf, unsigned int size, unsigned int channels, unsigned int rate, long h_codec ) { - int i, j; + unsigned int i, j; if (!h_codec) return -1; short* sample_buf = (short*)in_buf; @@ -340,7 +340,7 @@ static int Pcm16_2_G726_40( unsigned char* out_buf, unsigned char* in_buf, unsig static int G726_40_2_Pcm16( unsigned char* out_buf, unsigned char* in_buf, unsigned int size, unsigned int channels, unsigned int rate, long h_codec ) { - int i, j; + unsigned int i, j; u_int64_t v; if (!h_codec) return -1; _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
