ffmpeg | branch: master | Paul B Mahol <[email protected]> | Wed Oct  9 09:56:33 
2019 +0200| [1ebac3cda9f4e73b9fc4688ab1b0a96455a6f99a] | committer: Paul B Mahol

avfilter/af_adelay: fix buggy behaviour

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1ebac3cda9f4e73b9fc4688ab1b0a96455a6f99a
---

 libavfilter/af_adelay.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavfilter/af_adelay.c b/libavfilter/af_adelay.c
index 06e39fa6a4..c9647771f2 100644
--- a/libavfilter/af_adelay.c
+++ b/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;

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to