summaryrefslogtreecommitdiff
path: root/libavfilter/vf_v360.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/vf_v360.c')
-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 4bd545697f..6477303ca5 100644
--- a/libavfilter/vf_v360.c
+++ b/libavfilter/vf_v360.c
@@ -2777,7 +2777,7 @@ static int dfisheye_to_xyz(const V360Context *s,
const float m = i >= ew ? -1.f : 1.f;
const float uf = ((2.f * ei) / ew - 1.f) * scale;
- const float vf = ((2.f * j) / eh - 1.f) * scale;
+ const float vf = ((2.f * j + 1.f) / eh - 1.f) * scale;
const float h = hypotf(uf, vf);
const float lh = h > 0.f ? h : 1.f;