diff options
author | Paul B Mahol <onemda@gmail.com> | 2022-03-01 10:14:03 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2022-03-01 10:16:08 +0100 |
commit | e1974622e1e07bee1f6324be60bd0a97f1811b3f (patch) | |
tree | ac005c1190b40a3aa20d5e32be7dc12dfaa57ed7 | |
parent | 5ffad29d626ec14d050d07009eed8ae3887287d2 (diff) | |
download | ffmpeg-e1974622e1e07bee1f6324be60bd0a97f1811b3f.tar.gz |
avfilter/vf_v360: improve rounding in xyz_to_dfisheye()
-rw-r--r-- | libavfilter/vf_v360.c | 2 |
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); |