]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/dds.c
lavc/dds: replace rint by lrint
[ffmpeg] / libavcodec / dds.c
index d473fd14cfd946eef6f1212468376b9136aad0d5..9577b67f0fdd04c906b1288e979c6df5d884142e 100644 (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;