[FFmpeg-cvslog] avfilter/geq: unbreak alpha processing
Gyan Doshi
git at videolan.org
Sun May 8 07:35:58 EEST 2022
ffmpeg | branch: master | Gyan Doshi <ffmpeg at gyani.pro> | Sat May 7 17:42:18 2022 +0530| [b980d9e8ecf5d4bc5e39a74bdad98c7cc400da84] | committer: Gyan Doshi
avfilter/geq: unbreak alpha processing
d607af50fd broke alpha processing by always overwriting any supplied
alpha expression.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b980d9e8ecf5d4bc5e39a74bdad98c7cc400da84
---
libavfilter/vf_geq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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])
More information about the ffmpeg-cvslog
mailing list