[FFmpeg-cvslog] avfilter/vf_v360: improve rounding in xyz_to_dfisheye()

Paul B Mahol git at videolan.org
Tue Mar 1 11:14:55 EET 2022


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Mar  1 10:14:03 2022 +0100| [e1974622e1e07bee1f6324be60bd0a97f1811b3f] | committer: Paul B Mahol

avfilter/vf_v360: improve rounding in xyz_to_dfisheye()

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e1974622e1e07bee1f6324be60bd0a97f1811b3f
---

 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 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);



More information about the ffmpeg-cvslog mailing list