[FFmpeg-cvslog] avfilter/vf_v360: fix comparison with float value

Paul B Mahol git at videolan.org
Sat Sep 21 22:37:29 EEST 2019


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Sep 21 21:35:39 2019 +0200| [a1391cb942f81abe4a567acda0844ba80529aa9c] | committer: Paul B Mahol

avfilter/vf_v360: fix comparison with float value

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

 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 fbaa1c4f89..8339998454 100644
--- a/libavfilter/vf_v360.c
+++ b/libavfilter/vf_v360.c
@@ -2093,7 +2093,7 @@ static void xyz_to_dfisheye(const V360Context *s,
     int ui, vi;
     int u_shift;
 
-    if (vec[2] >= 0) {
+    if (vec[2] >= 0.f) {
         u_shift = 0;
     } else {
         u_shift = ceilf(ew);



More information about the ffmpeg-cvslog mailing list