diff options
author | Gyan Doshi <ffmpeg@gyani.pro> | 2022-05-07 17:24:18 +0530 |
---|---|---|
committer | Gyan Doshi <ffmpeg@gyani.pro> | 2022-05-08 10:05:19 +0530 |
commit | b980d9e8ecf5d4bc5e39a74bdad98c7cc400da84 (patch) | |
tree | 0edf1b92eb96781dd250e8ca07c5ff397a1a83c1 | |
parent | 93d6d697fa8ba9d44a624187277d7ff028bb1f1c (diff) | |
download | ffmpeg-b980d9e8ecf5d4bc5e39a74bdad98c7cc400da84.tar.gz |
avfilter/geq: unbreak alpha processing
d607af50fd broke alpha processing by always overwriting any supplied
alpha expression.
-rw-r--r-- | libavfilter/vf_geq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_geq.c b/libavfilter/vf_geq.c index fd9e0fd80b..2b53980278 100644 --- a/libavfilter/vf_geq.c +++ b/libavfilter/vf_geq.c @@ -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]) |