From 3981dbd192aaa51377019de9868bca082cfd8c7d Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sat, 29 Jan 2022 17:07:47 +0100 Subject: avfilter/vf_v360: improve xyz_to_dfisheye() even more --- 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); } } -- cgit v1.2.3