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:
authorPaul B Mahol <onemda@gmail.com>2019-09-13 13:32:35 +0300
committerPaul B Mahol <onemda@gmail.com>2019-09-13 13:32:35 +0300
commited4ad6e1ed970e53cb80a6204907067d403419c1 (patch)
tree197efae895a07d23370b387a21800c20ce715626 /libavfilter/vf_v360.c
parent2b3094d61de80dc029f66d4a78e75c1963076a5a (diff)
avfilter/vf_v360: use always float version instead of double floating-point function
Diffstat (limited to 'libavfilter/vf_v360.c')
-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;