[FFmpeg-cvslog] avfilter/vf_v360: improve dfisheye_to_xyz() output

Paul B Mahol git at videolan.org
Sun Feb 23 23:03:48 EET 2020


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Feb 23 22:00:32 2020 +0100| [90913abc2e1456edd224c55729a7334fbc78fd87] | committer: Paul B Mahol

avfilter/vf_v360: improve dfisheye_to_xyz() output

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

 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 4bd545697f..6477303ca5 100644
--- a/libavfilter/vf_v360.c
+++ b/libavfilter/vf_v360.c
@@ -2777,7 +2777,7 @@ static int dfisheye_to_xyz(const V360Context *s,
     const float m = i >= ew ? -1.f : 1.f;
 
     const float uf = ((2.f * ei) / ew - 1.f) * scale;
-    const float vf = ((2.f *  j) / eh - 1.f) * scale;
+    const float vf = ((2.f * j + 1.f) / eh - 1.f) * scale;
 
     const float h     = hypotf(uf, vf);
     const float lh    = h > 0.f ? h : 1.f;



More information about the ffmpeg-cvslog mailing list