[FFmpeg-cvslog] avfilter/vf_v360: improve xyz_to_dfisheye()
Paul B Mahol
git at videolan.org
Sat Jan 22 19:33:55 EET 2022
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Jan 22 10:32:34 2022 +0100| [06a54a4ec73ea6eb8cec41b7af75367bafb075e0] | committer: Paul B Mahol
avfilter/vf_v360: improve xyz_to_dfisheye()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=06a54a4ec73ea6eb8cec41b7af75367bafb075e0
---
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]);
More information about the ffmpeg-cvslog
mailing list