mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 09:02:20 +00:00
avfilter/af_adelay: fix buggy behaviour
This commit is contained in:
parent
24b6e968a2
commit
1ebac3cda9
@ -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…
Reference in New Issue
Block a user