Commit e09edc62 authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde

lavc/texturedsp: replace rint by lrint

avoids float to int cast.
Signed-off-by: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
parent 3e2e303e
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/libm.h"
#include "texturedsp.h" #include "texturedsp.h"
...@@ -528,7 +529,7 @@ static inline void rgtc2_block_internal(uint8_t *dst, ptrdiff_t stride, ...@@ -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; int d = (255 * 255 - r * r - g * g) / 2;
if (d > 0) if (d > 0)
b = rint(sqrtf(d)); b = lrint(sqrtf(d));
p[0] = r; p[0] = r;
p[1] = g; p[1] = g;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment