[FFmpeg-cvslog] avfilter/af_adelay: fix buggy behaviour

Paul B Mahol git at videolan.org
Wed Oct 9 10:57:19 EEST 2019


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | 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;



More information about the ffmpeg-cvslog mailing list