avfilter/geq: unbreak alpha processing

d607af50fd broke alpha processing by always overwriting any supplied
alpha expression.
This commit is contained in:
Gyan Doshi 2022-05-07 17:24:18 +05:30
parent 93d6d697fa
commit b980d9e8ec

View File

@ -275,7 +275,7 @@ static av_cold int geq_init(AVFilterContext *ctx)
if (!geq->expr_str[A] && geq->bps != 32) {
geq->expr_str[A] = av_asprintf("%d", (1<<geq->bps) - 1);
} else {
} else if (!geq->expr_str[A]) {
geq->expr_str[A] = av_asprintf("%f", 1.f);
}
if (!geq->expr_str[G])