aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2019-09-13 12:32:35 +0200
committerPaul B Mahol <onemda@gmail.com>2019-09-13 12:32:35 +0200
commited4ad6e1ed970e53cb80a6204907067d403419c1 (patch)
tree197efae895a07d23370b387a21800c20ce715626
parent2b3094d61de80dc029f66d4a78e75c1963076a5a (diff)
downloadffmpeg-ed4ad6e1ed970e53cb80a6204907067d403419c1.tar.gz
avfilter/vf_v360: use always float version instead of double floating-point function
-rw-r--r--libavfilter/vf_v360.c8
1 files 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;