mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01: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
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue