summaryrefslogtreecommitdiff
path: root/libavfilter/af_amix.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-04-14 19:18:44 +0200
committerPaul B Mahol <onemda@gmail.com>2020-04-14 19:21:23 +0200
commit0607f1bcb0f6ed04b7bb3a5b3d951fd9b1554561 (patch)
tree014592b6283319d97168d7f92f90614d13b1b1e8 /libavfilter/af_amix.c
parent40a9363033eaa1df1fb9dce4d8d1f522f7319f8a (diff)
avfilter/af_amix: unbreak FATE, increase iterator when breaking from loop
Diffstat (limited to 'libavfilter/af_amix.c')
-rw-r--r--libavfilter/af_amix.c6
1 files 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++) {