summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-02-23 21:55:35 +0100
committerPaul B Mahol <onemda@gmail.com>2020-02-23 21:55:35 +0100
commite6ea0e7429924bd8d9f20089e57540208abf8a01 (patch)
tree696eba0049db98f77c8593067df3bf6fe4185e18 /libavfilter
parent9e0ddb5e80542d72059f9d817722a6e386ecc037 (diff)
avfilter/vf_v360: improve fisheye_to_xyz() output
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_v360.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_v360.c b/libavfilter/vf_v360.c
index dee632c258..4bd545697f 100644
--- a/libavfilter/vf_v360.c
+++ b/libavfilter/vf_v360.c
@@ -2401,7 +2401,7 @@ static int fisheye_to_xyz(const V360Context *s,
float *vec)
{
const float uf = s->flat_range[0] * ((2.f * i) / width - 1.f);
- const float vf = s->flat_range[1] * ((2.f * j) / height - 1.f);
+ const float vf = s->flat_range[1] * ((2.f * j + 1.f) / height - 1.f);
const float phi = -atan2f(vf, uf);
const float theta = -M_PI_2 * (1.f - hypotf(uf, vf));