[FFmpeg-cvslog] avfilter/vf_v360: use always float version instead of double floating-point function
Paul B Mahol
git at videolan.org
Fri Sep 13 13:36:07 EEST 2019
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Sep 13 12:32:35 2019 +0200| [ed4ad6e1ed970e53cb80a6204907067d403419c1] | committer: Paul B Mahol
avfilter/vf_v360: use always float version instead of double floating-point function
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ed4ad6e1ed970e53cb80a6204907067d403419c1
---
libavfilter/vf_v360.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/libavfilter/vf_v360.c b/libavfilter/vf_v360.c
index 098bc07ef5..7cd6aa9f6d 100644
--- a/libavfilter/vf_v360.c
+++ b/libavfilter/vf_v360.c
@@ -1408,8 +1408,8 @@ static int prepare_stereographic_out(AVFilterContext *ctx)
{
V360Context *s = ctx->priv;
- const float h_angle = tan(FFMIN(s->h_fov, 359.f) * M_PI / 720.f);
- const float v_angle = tan(FFMIN(s->v_fov, 359.f) * M_PI / 720.f);
+ const float h_angle = tanf(FFMIN(s->h_fov, 359.f) * M_PI / 720.f);
+ const float v_angle = tanf(FFMIN(s->v_fov, 359.f) * M_PI / 720.f);
s->flat_range[0] = h_angle;
s->flat_range[1] = v_angle;
@@ -1777,8 +1777,8 @@ static int prepare_flat_out(AVFilterContext *ctx)
const float h_angle = 0.5f * s->h_fov * M_PI / 180.f;
const float v_angle = 0.5f * s->v_fov * M_PI / 180.f;
- s->flat_range[0] = tan(h_angle);
- s->flat_range[1] = tan(v_angle);
+ s->flat_range[0] = tanf(h_angle);
+ s->flat_range[1] = tanf(v_angle);
s->flat_range[2] = -1.f;
return 0;
More information about the ffmpeg-cvslog
mailing list