]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/vf_v360: fix regression introduced in b342678bc47b4e5
authorPaul B Mahol <onemda@gmail.com>
Mon, 23 Sep 2019 10:27:41 +0000 (12:27 +0200)
committerPaul B Mahol <onemda@gmail.com>
Mon, 23 Sep 2019 10:27:41 +0000 (12:27 +0200)
libavfilter/vf_v360.c

index e44a26ee456111c917c33bd48907511bd80eafd4..9596a75c0d9ab02f8dbedc9a28736864f7d60c49 100644 (file)
@@ -2069,8 +2069,8 @@ static void dfisheye_to_xyz(const V360Context *s,
     const float sin_theta = sinf(theta);
     const float cos_theta = cosf(theta);
 
-    vec[0] = cos_theta *  uf / lh;
-    vec[1] = cos_theta * -vf / lh;
+    vec[0] = cos_theta * m * -uf / lh;
+    vec[1] = cos_theta *     -vf / lh;
     vec[2] = sin_theta;
 
     normalize_vector(vec);