"Fossies" - the Fresh Open Source Software Archive

Member "mumble-1.3.2/3rdparty/speexdsp-src/regression-fixes/1-resampler_unsigned_fix.patch" (9 Jul 2020, 750 Bytes) of package /linux/misc/mumble-1.3.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Diff source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 diff --git a/libspeex/resample.c b/libspeex/resample.c
    2 index 4403f78..48ffcef 100644
    3 --- a/libspeex/resample.c
    4 +++ b/libspeex/resample.c
    5 @@ -561,10 +561,10 @@ static void update_filter(SpeexResamplerState *st)
    6        }
    7        for (i=0;i<st->den_rate;i++)
    8        {
    9 -         spx_uint32_t j;
   10 +         spx_int32_t j;
   11           for (j=0;j<st->filt_len;j++)
   12           {
   13 -            st->sinc_table[i*st->filt_len+j] = sinc(st->cutoff,((j-st->filt_len/2+1)-((float)i)/st->den_rate), st->filt_len, quality_map[st->quality].window_func);
   14 +            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);
   15           }
   16        }
   17  #ifdef FIXED_POINT