summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2021-07-17 23:23:20 +0200
committerPaul B Mahol <onemda@gmail.com>2021-07-17 23:27:51 +0200
commit305be41374436559a4a5deeb8ca436d13bbfaf75 (patch)
tree6338819161653162548c8542a031dc66e0d3c496 /libavfilter
parentc320b78e95bab2a71a636dc4da905522c4646b35 (diff)
avfilter/vf_v360: avoid doubles in fov_from_dfov()
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_v360.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_v360.c b/libavfilter/vf_v360.c
index c5c4e3bf65..692fa43c4d 100644
--- a/libavfilter/vf_v360.c
+++ b/libavfilter/vf_v360.c
@@ -4161,8 +4161,8 @@ static void fov_from_dfov(int format, float d_fov, float w, float h, float *h_fo
const float d = 0.5f * hypotf(w, h);
const float l = sinf(d_fov * M_PI / 360.f) / d;
- *h_fov = asinf(w * 0.5 * l) * 360.f / M_PI;
- *v_fov = asinf(h * 0.5 * l) * 360.f / M_PI;
+ *h_fov = asinf(w * 0.5f * l) * 360.f / M_PI;
+ *v_fov = asinf(h * 0.5f * l) * 360.f / M_PI;
if (d_fov > 180.f) {
*h_fov = 180.f - *h_fov;