Commit b980d9e8 authored by Gyan Doshi's avatar Gyan Doshi

avfilter/geq: unbreak alpha processing

d607af50 broke alpha processing by always overwriting any supplied
alpha expression.
parent 93d6d697
......@@ -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])
......
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