summaryrefslogtreecommitdiff
path: root/libavfilter/vf_v360.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-01-25 13:26:51 +0100
committerPaul B Mahol <onemda@gmail.com>2020-01-25 14:34:05 +0100
commit9990cb16d3fd1ae8b38da2f3b2563d8496d5e28a (patch)
tree7d7f3f2ca08c4f7beeef6f7c6a94894bce5accea /libavfilter/vf_v360.c
parent8d861cd850597c009b6d947a556209f4ac7469d9 (diff)
avfilter/vf_v360: mark another hemisphere not visible for flat input format
Diffstat (limited to 'libavfilter/vf_v360.c')
-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 2fc9d222b6..6d476c6392 100644
--- a/libavfilter/vf_v360.c
+++ b/libavfilter/vf_v360.c
@@ -1766,7 +1766,7 @@ static int xyz_to_flat(const V360Context *s,
ui = floorf(uf);
vi = floorf(vf);
- visible = vi >= 0 && vi < height && ui >= 0 && ui < width;
+ visible = vi >= 0 && vi < height && ui >= 0 && ui < width && zf >= 0.f;
*du = uf - ui;
*dv = vf - vi;