@@ -670,10 +670,10 @@ static int update_filter(SpeexResamplerState *st)
670
670
spx_uint32_t i ;
671
671
for (i = 0 ;i < st -> den_rate ;i ++ )
672
672
{
673
- spx_int32_t j ;
673
+ spx_uint32_t j ;
674
674
for (j = 0 ;j < st -> filt_len ;j ++ )
675
675
{
676
- st -> sinc_table [i * st -> filt_len + j ] = sinc (st -> cutoff ,((j - (spx_int32_t )st -> filt_len /2 + 1 )- ((float )i )/st -> den_rate ), st -> filt_len , quality_map [st -> quality ].window_func );
676
+ st -> sinc_table [i * st -> filt_len + j ] = sinc (st -> cutoff ,((( spx_int32_t ) j - (spx_int32_t )st -> filt_len /2 + 1 )- ((float )i )/st -> den_rate ), st -> filt_len , quality_map [st -> quality ].window_func );
677
677
}
678
678
}
679
679
#ifdef FIXED_POINT
@@ -798,7 +798,6 @@ EXPORT SpeexResamplerState *speex_resampler_init(spx_uint32_t nb_channels, spx_u
798
798
799
799
EXPORT SpeexResamplerState * speex_resampler_init_frac (spx_uint32_t nb_channels , spx_uint32_t ratio_num , spx_uint32_t ratio_den , spx_uint32_t in_rate , spx_uint32_t out_rate , int quality , int * err )
800
800
{
801
- spx_uint32_t i ;
802
801
SpeexResamplerState * st ;
803
802
int filter_err ;
804
803
@@ -928,7 +927,7 @@ EXPORT int speex_resampler_process_int(SpeexResamplerState *st, spx_uint32_t cha
928
927
EXPORT int speex_resampler_process_float (SpeexResamplerState * st , spx_uint32_t channel_index , const float * in , spx_uint32_t * in_len , float * out , spx_uint32_t * out_len )
929
928
#endif
930
929
{
931
- int j ;
930
+ spx_uint32_t j ;
932
931
spx_uint32_t ilen = * in_len ;
933
932
spx_uint32_t olen = * out_len ;
934
933
spx_word16_t * x = st -> mem + channel_index * st -> mem_alloc_size ;
@@ -969,7 +968,7 @@ EXPORT int speex_resampler_process_float(SpeexResamplerState *st, spx_uint32_t c
969
968
EXPORT int speex_resampler_process_int (SpeexResamplerState * st , spx_uint32_t channel_index , const spx_int16_t * in , spx_uint32_t * in_len , spx_int16_t * out , spx_uint32_t * out_len )
970
969
#endif
971
970
{
972
- int j ;
971
+ spx_uint32_t j ;
973
972
const int istride_save = st -> in_stride ;
974
973
const int ostride_save = st -> out_stride ;
975
974
spx_uint32_t ilen = * in_len ;
0 commit comments