From 06a54a4ec73ea6eb8cec41b7af75367bafb075e0 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sat, 22 Jan 2022 10:32:34 +0100 Subject: avfilter/vf_v360: improve xyz_to_dfisheye() --- libavfilter/vf_v360.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_v360.c b/libavfilter/vf_v360.c index 9e590a228c..7f1baa4850 100644 --- a/libavfilter/vf_v360.c +++ b/libavfilter/vf_v360.c @@ -3451,7 +3451,7 @@ static int xyz_to_dfisheye(const V360Context *s, const float *vec, int width, int height, int16_t us[4][4], int16_t vs[4][4], float *du, float *dv) { - const float ew = (width - 1) * 0.5f; + const float ew = width * 0.5f; const float eh = height; const float h = hypotf(vec[0], vec[1]); -- cgit v1.2.3