mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
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>
This commit is contained in:
parent
06af6e101b
commit
1f21349d20
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user