Commit ed4ad6e1 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_v360: use always float version instead of double floating-point function

parent 2b3094d6
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment