diff options
Diffstat (limited to 'audio/filter/af_sweep.c')
-rw-r--r-- | audio/filter/af_sweep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/filter/af_sweep.c b/audio/filter/af_sweep.c index 0a140dcb65..daa2891219 100644 --- a/audio/filter/af_sweep.c +++ b/audio/filter/af_sweep.c @@ -67,9 +67,9 @@ static struct mp_audio* play(struct af_instance* af, struct mp_audio* data) { af_sweept *s = af->setup; int i, j; - int16_t *in = (int16_t*)data->audio; + int16_t *in = (int16_t*)data->planes[0]; int chans = data->nch; - int in_len = data->len/(2*chans); + int in_len = data->samples; for(i=0; i<in_len; i++){ for(j=0; j<chans; j++) |