[FFmpeg-cvslog] avfilter/vf_v360: improve xyz_to_dfisheye() even more
Paul B Mahol
git at videolan.org
Sat Jan 29 18:37:48 EET 2022
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Jan 29 17:07:47 2022 +0100| [3981dbd192aaa51377019de9868bca082cfd8c7d] | committer: Paul B Mahol
avfilter/vf_v360: improve xyz_to_dfisheye() even more
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3981dbd192aaa51377019de9868bca082cfd8c7d
---
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 7f1baa4850..e2c90e7eb7 100644
--- a/libavfilter/vf_v360.c
+++ b/libavfilter/vf_v360.c
@@ -3479,7 +3479,7 @@ static int xyz_to_dfisheye(const V360Context *s,
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 4; j++) {
- us[i][j] = av_clip(u_shift + ui + j - 1, 0, width - 1);
+ us[i][j] = u_shift + av_clip(ui + j - 1, 0, ew - 1);
vs[i][j] = av_clip( vi + i - 1, 0, height - 1);
}
}
More information about the ffmpeg-cvslog
mailing list