[FFmpeg-cvslog] lavfi/vf_hue: replace rint by lrint
Ganesh Ajjanagadde
git at videolan.org
Sun Dec 27 05:31:11 CET 2015
ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Fri Dec 25 13:17:14 2015 -0800| [4e7cfefa16afb01bc34d5cddb39a1352d50f978b] | committer: Ganesh Ajjanagadde
lavfi/vf_hue: replace rint by lrint
avoids float to int cast.
Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4e7cfefa16afb01bc34d5cddb39a1352d50f978b
---
libavfilter/vf_hue.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavfilter/vf_hue.c b/libavfilter/vf_hue.c
index 2c1b34e..92607f1 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)
More information about the ffmpeg-cvslog
mailing list