diff options
Diffstat (limited to 'audio/filter/af_sub.c')
-rw-r--r-- | audio/filter/af_sub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/filter/af_sub.c b/audio/filter/af_sub.c index 7778e80b64..92abd2f0ea 100644 --- a/audio/filter/af_sub.c +++ b/audio/filter/af_sub.c @@ -143,8 +143,8 @@ static struct mp_audio* play(struct af_instance* af, struct mp_audio* data) { struct mp_audio* c = data; // Current working data af_sub_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 len = c->samples*c->nch; // Number of samples in current audio block int nch = c->nch; // Number of channels int ch = s->ch; // Channel in which to insert the sub audio register int i; |