avfilter/vf_deband: avoid doubles

This commit is contained in:
Paul B Mahol 2021-02-08 15:58:42 +01:00
parent 8d21eccd26
commit 178a0d6f7d

View File

@ -117,7 +117,7 @@ static int query_formats(AVFilterContext *ctx)
static float frand(int x, int y) 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); return r - floorf(r);
} }