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

This commit is contained in:
Paul B Mahol 2020-04-14 19:18:44 +02:00
parent 40a9363033
commit 0607f1bcb0

View File

@ -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++) {