Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-12-26 00:17:14 +0300
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-12-27 07:29:22 +0300
commit4e7cfefa16afb01bc34d5cddb39a1352d50f978b (patch)
treebcdf4631a2de3d15b306ad3b6f14cd11d95da43c /libavfilter/vf_hue.c
parent0779d54a218cbbc1ac3e32da17832f3cd0482b93 (diff)
lavfi/vf_hue: replace rint by lrint
avoids float to int cast. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavfilter/vf_hue.c')
-rw-r--r--libavfilter/vf_hue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_hue.c b/libavfilter/vf_hue.c
index 2c1b34ee50..92607f163b 100644
--- a/libavfilter/vf_hue.c
+++ b/libavfilter/vf_hue.c
@@ -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)