[FFmpeg-cvslog] avfilter/vf_deband: avoid doubles

Paul B Mahol git at videolan.org
Mon Feb 8 17:11:24 EET 2021


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Feb  8 15:58:42 2021 +0100| [178a0d6f7d0aad2444ec6104dea0ec4d9e3d50c7] | committer: Paul B Mahol

avfilter/vf_deband: avoid doubles

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

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

diff --git a/libavfilter/vf_deband.c b/libavfilter/vf_deband.c
index 330792f532..165009c136 100644
--- a/libavfilter/vf_deband.c
+++ b/libavfilter/vf_deband.c
@@ -117,7 +117,7 @@ static int query_formats(AVFilterContext *ctx)
 
 static float frand(int x, int y)
 {
-    const float r = sinf(x * 12.9898 + y * 78.233) * 43758.545;
+    const float r = sinf(x * 12.9898f + y * 78.233f) * 43758.545f;
 
     return r - floorf(r);
 }



More information about the ffmpeg-cvslog mailing list