summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2022-01-29 17:07:47 +0100
committerPaul B Mahol <onemda@gmail.com>2022-01-29 17:36:37 +0100
commit3981dbd192aaa51377019de9868bca082cfd8c7d (patch)
tree08ad286b32ca82c1b8c82eb38f3c47bbbdebbabf
parent2f323b19789dac87ec57b9fec663e049e0dc4164 (diff)
avfilter/vf_v360: improve xyz_to_dfisheye() even more
-rw-r--r--libavfilter/vf_v360.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}