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 a216aeebdd..7f377dd8f2 100644
--- a/libavfilter/vf_v360.c
+++ b/libavfilter/vf_v360.c
@@ -3468,7 +3468,7 @@ static int xyz_to_dfisheye(const V360Context *s,
u_shift = ceilf(ew);
} else {
u_shift = 0;
- uf = ew - uf;
+ uf = ew - uf - 1.f;
}
ui = floorf(uf);