History

avfilter/geq: unbreak alpha processing

d607af50fd broke alpha processing by always overwriting any supplied alpha expression.

Gyan Doshi committed 4 years ago

Commit b980d9e1 parent 93d6d691 file · +1 −1Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_geq.c+1−1
@@ -275,7 +275,7 @@ static av_cold int geq_init(AVFilterContext *ctx) · 274 unmodified lines
275 275
276 if (!geq->expr_str[A] && geq->bps != 32) {276 if (!geq->expr_str[A] && geq->bps != 32) {
277 geq->expr_str[A] = av_asprintf("%d", (1<<geq->bps) - 1);277 geq->expr_str[A] = av_asprintf("%d", (1<<geq->bps) - 1);
278 } else {278 } else if (!geq->expr_str[A]) {
279 geq->expr_str[A] = av_asprintf("%f", 1.f);279 geq->expr_str[A] = av_asprintf("%f", 1.f);
280 }280 }
281 if (!geq->expr_str[G])281 if (!geq->expr_str[G])

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t