[FFmpeg-cvslog] avfilter/vf_v360: mark another hemisphere not visible for flat input format

Paul B Mahol git at videolan.org
Sat Jan 25 15:37:54 EET 2020


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Jan 25 13:26:51 2020 +0100| [9990cb16d3fd1ae8b38da2f3b2563d8496d5e28a] | committer: Paul B Mahol

avfilter/vf_v360: mark another hemisphere not visible for flat input format

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9990cb16d3fd1ae8b38da2f3b2563d8496d5e28a
---

 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;



More information about the ffmpeg-cvslog mailing list