avfilter/af_adelay: fix buggy behaviour

pull/323/head
Paul B Mahol 5 years ago
parent 24b6e968a2
commit 1ebac3cda9
  1. 6
      libavfilter/af_adelay.c

@ -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;

Loading…
Cancel
Save