mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/geq: unbreak alpha processing
d607af50fd
broke alpha processing by always overwriting any supplied
alpha expression.
This commit is contained in:
parent
93d6d697fa
commit
b980d9e8ec
|
@ -275,7 +275,7 @@ static av_cold int geq_init(AVFilterContext *ctx)
|
||||||
|
|
||||||
if (!geq->expr_str[A] && geq->bps != 32) {
|
if (!geq->expr_str[A] && geq->bps != 32) {
|
||||||
geq->expr_str[A] = av_asprintf("%d", (1<<geq->bps) - 1);
|
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);
|
geq->expr_str[A] = av_asprintf("%f", 1.f);
|
||||||
}
|
}
|
||||||
if (!geq->expr_str[G])
|
if (!geq->expr_str[G])
|
||||||
|
|
Loading…
Reference in New Issue