summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2021-06-05 20:12:08 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2021-07-20 17:16:13 +0200
commit1f21349d20d9bda8eeeddb23263892be0cea12e3 (patch)
tree506353f5b3286008d3b2cee9294925b2afa3e5d6
parent06af6e101bbd04e8ecc5337bc3b6894a5e058e14 (diff)
avfilter/vf_fftdnoiz: Use lrintf() in export_row8()
Fixes: 1.04064e+10 is outside the range of representable values of type 'int' Fixes: Ticket 8279 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavfilter/vf_fftdnoiz.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_fftdnoiz.c b/libavfilter/vf_fftdnoiz.c
index 7f4a6d88cf..8dc50b776f 100644
--- a/libavfilter/vf_fftdnoiz.c
+++ b/libavfilter/vf_fftdnoiz.c
@@ -161,7 +161,7 @@ static void export_row8(FFTComplex *src, uint8_t *dst, int rw, float scale, int
int j;
for (j = 0; j < rw; j++)
- dst[j] = av_clip_uint8(src[j].re * scale + 0.5f);
+ dst[j] = av_clip_uint8(lrintf(src[j].re * scale));
}
static void import_row16(FFTComplex *dst, uint8_t *srcp, int rw)