Mercurial > mplayer.hg
comparison libaf/af_resample.c @ 21058:1ed61a0494c4
Reinitialize some variables on af_resample reinit, fixes crash
author | uau |
---|---|
date | Sun, 19 Nov 2006 18:10:04 +0000 |
parents | 32d611b59079 |
children | ecf562795caf |
comparison
equal
deleted
inserted
replaced
21057:63349f025c17 | 21058:1ed61a0494c4 |
---|---|
218 float* wt; | 218 float* wt; |
219 float fc; | 219 float fc; |
220 int j; | 220 int j; |
221 s->up = af->data->rate/d; | 221 s->up = af->data->rate/d; |
222 s->dn = n->rate/d; | 222 s->dn = n->rate/d; |
223 s->wi = 0; | |
224 s->i = 0; | |
223 | 225 |
224 // Calculate cuttof frequency for filter | 226 // Calculate cuttof frequency for filter |
225 fc = 1/(float)(max(s->up,s->dn)); | 227 fc = 1/(float)(max(s->up,s->dn)); |
226 // Allocate space for polyphase filter bank and protptype filter | 228 // Allocate space for polyphase filter bank and protptype filter |
227 w = malloc(sizeof(float) * s->up *L); | 229 w = malloc(sizeof(float) * s->up *L); |