[FFmpeg-cvslog] avfilter/af_amix: unbreak FATE, increase iterator when breaking from loop
Paul B Mahol
git at videolan.org
Tue Apr 14 20:22:18 EEST 2020
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Apr 14 19:18:44 2020 +0200| [0607f1bcb0f6ed04b7bb3a5b3d951fd9b1554561] | committer: Paul B Mahol
avfilter/af_amix: unbreak FATE, increase iterator when breaking from loop
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0607f1bcb0f6ed04b7bb3a5b3d951fd9b1554561
---
libavfilter/af_amix.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/libavfilter/af_amix.c b/libavfilter/af_amix.c
index 78b7a7c83d..c09f8b034b 100644
--- a/libavfilter/af_amix.c
+++ b/libavfilter/af_amix.c
@@ -538,10 +538,12 @@ static av_cold int init(AVFilterContext *ctx)
last_weight = av_strtod(p, &p);
s->weights[i] = last_weight;
s->weight_sum += FFABS(last_weight);
- if (p && *p)
+ if (p && *p) {
p++;
- else
+ } else {
+ i++;
break;
+ }
}
for (; i < s->nb_inputs; i++) {
More information about the ffmpeg-cvslog
mailing list