From e13f0b9456a5028594090e4f6f10f0a9d76f1bd2 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sat, 29 Jan 2022 17:18:16 +0100 Subject: avfilter/vf_v360: improve xyz_to_fisheye() --- libavfilter/vf_v360.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_v360.c b/libavfilter/vf_v360.c index e2c90e7eb7..a216aeebdd 100644 --- a/libavfilter/vf_v360.c +++ b/libavfilter/vf_v360.c @@ -2941,8 +2941,8 @@ static int xyz_to_fisheye(const V360Context *s, const int visible = -0.5f < uf && uf < 0.5f && -0.5f < vf && vf < 0.5f; int ui, vi; - uf = (uf + 0.5f) * width; - vf = (vf + 0.5f) * height; + uf = scale(uf * 2.f, width); + vf = scale(vf * 2.f, height); ui = floorf(uf); vi = floorf(vf); -- cgit v1.2.3