Commit 1ebac3cd authored by Paul B Mahol's avatar Paul B Mahol

avfilter/af_adelay: fix buggy behaviour

parent 24b6e968
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment