Commit 0607f1bc authored by Paul B Mahol's avatar Paul B Mahol

avfilter/af_amix: unbreak FATE, increase iterator when breaking from loop

parent 40a93630
......@@ -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++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment