[FFmpeg-cvslog] avfilter/vf_colorbalance: remove wrong addition

Paul B Mahol git at videolan.org
Mon Jun 29 15:53:30 EEST 2020


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Jun 29 14:50:06 2020 +0200| [cca982ee018aad54214e94f2a0a5921c8bbf1328] | committer: Paul B Mahol

avfilter/vf_colorbalance: remove wrong addition

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cca982ee018aad54214e94f2a0a5921c8bbf1328
---

 libavfilter/vf_colorbalance.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_colorbalance.c b/libavfilter/vf_colorbalance.c
index 56f9d5c49c..cc90dc08c7 100644
--- a/libavfilter/vf_colorbalance.c
+++ b/libavfilter/vf_colorbalance.c
@@ -111,7 +111,7 @@ static float get_component(float v, float l,
     v += m;
     v += h;
 
-    return av_clipf(v + 0.5f, 0, 1);
+    return av_clipf(v, 0, 1);
 }
 
 static float hfun(float n, float h, float s, float l)



More information about the ffmpeg-cvslog mailing list