mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-08 16:54:03 +02:00
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) {
|
||||
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])
|
||||
|
Loading…
x
Reference in New Issue
Block a user