mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
lavc/texturedsp: replace rint by lrint
avoids float to int cast. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
This commit is contained in:
parent
3e2e303e4b
commit
e09edc62cd
@ -28,6 +28,7 @@
|
||||
#include "libavutil/attributes.h"
|
||||
#include "libavutil/common.h"
|
||||
#include "libavutil/intreadwrite.h"
|
||||
#include "libavutil/libm.h"
|
||||
|
||||
#include "texturedsp.h"
|
||||
|
||||
@ -528,7 +529,7 @@ static inline void rgtc2_block_internal(uint8_t *dst, ptrdiff_t stride,
|
||||
|
||||
int d = (255 * 255 - r * r - g * g) / 2;
|
||||
if (d > 0)
|
||||
b = rint(sqrtf(d));
|
||||
b = lrint(sqrtf(d));
|
||||
|
||||
p[0] = r;
|
||||
p[1] = g;
|
||||
|
Loading…
Reference in New Issue
Block a user