aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2022-01-22 10:32:34 +0100
committerPaul B Mahol <onemda@gmail.com>2022-01-22 18:32:58 +0100
commit06a54a4ec73ea6eb8cec41b7af75367bafb075e0 (patch)
treed1f6f6091b9aba1850fb75b38fa657c76200050f
parent741b5061ea23de12340bf7762fcd112032ec6310 (diff)
downloadffmpeg-06a54a4ec73ea6eb8cec41b7af75367bafb075e0.tar.gz
avfilter/vf_v360: improve xyz_to_dfisheye()
-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 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]);