avfilter/af_adelay: fix buggy behaviour

This commit is contained in:
Paul B Mahol 2019-10-09 09:56:33 +02:00
parent 24b6e968a2
commit 1ebac3cda9
1 changed files with 3 additions and 3 deletions

View File

@ -165,9 +165,9 @@ static int config_input(AVFilterLink *inlink)
}
}
if (s->all) {
for (int j = i + 1; j < s->nb_delays; j++)
s->chandelay[j].delay = s->chandelay[i].delay;
if (s->all && i) {
for (int j = i; j < s->nb_delays; j++)
s->chandelay[j].delay = s->chandelay[i-1].delay;
}
s->padding = s->chandelay[0].delay;