Commit 5979c740 authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde

lavc/dds: replace rint by lrint

avoids float to int cast.
Signed-off-by: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
parent e09edc62
......@@ -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;
......
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