lavc/dds: replace rint by lrint

avoids float to int cast.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
This commit is contained in:
Ganesh Ajjanagadde 2015-12-25 15:54:16 -08:00
parent e09edc62cd
commit 5979c740f5
1 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@
#include <stdint.h>
#include "libavutil/libm.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"
@ -508,7 +509,7 @@ static void run_postproc(AVCodecContext *avctx, AVFrame *frame)
int d = (255 * 255 - x * x - y * y) / 2;
if (d > 0)
z = rint(sqrtf(d));
z = lrint(sqrtf(d));
src[0] = x;
src[1] = y;