]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/vf_v360: mark another hemisphere not visible for flat input format
authorPaul B Mahol <onemda@gmail.com>
Sat, 25 Jan 2020 12:26:51 +0000 (13:26 +0100)
committerPaul B Mahol <onemda@gmail.com>
Sat, 25 Jan 2020 13:34:05 +0000 (14:34 +0100)
libavfilter/vf_v360.c

index 2fc9d222b6d61c9223e849ee0593d3e979f53024..6d476c6392fb822a71704e421a6f39dfcc625a05 100644 (file)
@@ -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;