diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-09-12 18:16:13 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-09-12 18:37:38 +0200 |
commit | b4562301ee44747567a206e7333aa4ecf3824935 (patch) | |
tree | ee1fedf6efec39cad9c1b194ea61de51d53bf11b | |
parent | e55018ee110bf42e32739b1725411dde44e70291 (diff) | |
download | ffmpeg-b4562301ee44747567a206e7333aa4ecf3824935.tar.gz |
avfilter/vf_v360: fix M_PI_4 usage consistency
-rw-r--r-- | libavfilter/vf_v360.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_v360.c b/libavfilter/vf_v360.c index 5b4d81458e..17766a37fd 100644 --- a/libavfilter/vf_v360.c +++ b/libavfilter/vf_v360.c @@ -1883,7 +1883,7 @@ static void barrel_to_xyz(const V360Context *s, float l_x, l_y, l_z; if (i < 4 * width / 5) { - const float theta_range = M_PI / 4.f; + const float theta_range = M_PI_4; const int ew = 4 * width / 5; const int eh = height; @@ -1955,7 +1955,7 @@ static void xyz_to_barrel(const V360Context *s, const float phi = atan2f(vec[0], -vec[2]) * s->input_mirror_modifier[0]; const float theta = asinf(-vec[1]) * s->input_mirror_modifier[1]; - const float theta_range = M_PI / 4.f; + const float theta_range = M_PI_4; int ew, eh; int u_shift, v_shift; |