diff options
Diffstat (limited to 'audio/filter/af_center.c')
-rw-r--r-- | audio/filter/af_center.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/filter/af_center.c b/audio/filter/af_center.c index 0cfdbc3b0e..c64c551f1c 100644 --- a/audio/filter/af_center.c +++ b/audio/filter/af_center.c @@ -87,9 +87,9 @@ static struct mp_audio* play(struct af_instance* af, struct mp_audio* data) { struct mp_audio* c = data; // Current working data af_center_t* s = af->setup; // Setup for this instance - float* a = c->audio; // Audio data - int len = c->len/4; // Number of samples in current audio block + float* a = c->planes[0]; // Audio data int nch = c->nch; // Number of channels + int len = c->samples*c->nch; // Number of samples in current audio block int ch = s->ch; // Channel in which to insert the center audio register int i; |