diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-10-02 22:13:14 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-10-02 22:13:14 +0000 |
commit | 3f05bdd0e013226c23dc8933409fac0992de3b30 (patch) | |
tree | cf38a212c9d35f7576b77fda7c318a84cebb4b51 /libaf | |
parent | d65409434ce48abb6218d2f49352a453947af240 (diff) |
100l
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7588 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libaf')
-rw-r--r-- | libaf/af_resample.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libaf/af_resample.c b/libaf/af_resample.c index 4b7eb4e660..210aa734e9 100644 --- a/libaf/af_resample.c +++ b/libaf/af_resample.c @@ -145,7 +145,7 @@ static int downsample(af_data_t* c,af_data_t* l, af_resample_t* s) uint32_t up = s->up; uint32_t dn = s->dn; - register uint32_t i = 0; + register int32_t i = 0; register uint32_t wi = 0; register uint32_t xi = 0; @@ -162,7 +162,7 @@ static int downsample(af_data_t* c,af_data_t* l, af_resample_t* s) ADDQUE(xi,x,in); in+=nch; - if(!--i){ + if((--i)<=0){ // Run the FIR filter FIR((&x[xi]),(&s->w[wi*L]),out); len++; out+=nch; |