From 9990cb16d3fd1ae8b38da2f3b2563d8496d5e28a Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sat, 25 Jan 2020 13:26:51 +0100 Subject: [PATCH] avfilter/vf_v360: mark another hemisphere not visible for flat input format --- 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 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;