]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_hue.c
Merge commit 'fec76cd430f3c865183a6e5b4caec0743e055605'
[ffmpeg] / libavfilter / vf_hue.c
index 2c1b34ee503f41e0d79ea405d966a948e73bcfcc..92607f163b18612c3069f2ea830f73da410c86b6 100644 (file)
@@ -105,8 +105,8 @@ static inline void compute_sin_and_cos(HueContext *hue)
      * the saturation.
      * This will be useful in the apply_lut function.
      */
-    hue->hue_sin = rint(sin(hue->hue) * (1 << 16) * hue->saturation);
-    hue->hue_cos = rint(cos(hue->hue) * (1 << 16) * hue->saturation);
+    hue->hue_sin = lrint(sin(hue->hue) * (1 << 16) * hue->saturation);
+    hue->hue_cos = lrint(cos(hue->hue) * (1 << 16) * hue->saturation);
 }
 
 static inline void create_luma_lut(HueContext *h)