mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 20:19:55 +00:00
avfilter/vsrc_mptestsrc: use lrint instead of floor hack
lrint is faster, and is more consistent across the codebase. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
This commit is contained in:
parent
1bb7db217d
commit
fa5d299496
@ -121,7 +121,7 @@ static void idct(uint8_t *dst, int dst_linesize, int src[64])
|
||||
for (k = 0; k < 8; k++)
|
||||
sum += c[k*8+i]*tmp[8*k+j];
|
||||
|
||||
dst[dst_linesize*i + j] = av_clip_uint8((int)floor(sum+0.5));
|
||||
dst[dst_linesize*i + j] = av_clip_uint8(lrint(sum));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user