Commit 8b58d9cb authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_v360: remove uneeded array element

parent 5c93a0a1
...@@ -121,7 +121,7 @@ typedef struct V360Context { ...@@ -121,7 +121,7 @@ typedef struct V360Context {
int in_transpose, out_transpose; int in_transpose, out_transpose;
float h_fov, v_fov, d_fov; float h_fov, v_fov, d_fov;
float flat_range[3]; float flat_range[2];
float rot_mat[3][3]; float rot_mat[3][3];
......
...@@ -1918,7 +1918,6 @@ static int prepare_flat_out(AVFilterContext *ctx) ...@@ -1918,7 +1918,6 @@ static int prepare_flat_out(AVFilterContext *ctx)
s->flat_range[0] = tanf(h_angle); s->flat_range[0] = tanf(h_angle);
s->flat_range[1] = tanf(v_angle); s->flat_range[1] = tanf(v_angle);
s->flat_range[2] = -1.f;
return 0; return 0;
} }
...@@ -1939,11 +1938,10 @@ static void flat_to_xyz(const V360Context *s, ...@@ -1939,11 +1938,10 @@ static void flat_to_xyz(const V360Context *s,
{ {
const float l_x = s->flat_range[0] * (2.f * i / width - 1.f); const float l_x = s->flat_range[0] * (2.f * i / width - 1.f);
const float l_y = -s->flat_range[1] * (2.f * j / height - 1.f); const float l_y = -s->flat_range[1] * (2.f * j / height - 1.f);
const float l_z = s->flat_range[2];
vec[0] = l_x; vec[0] = l_x;
vec[1] = l_y; vec[1] = l_y;
vec[2] = l_z; vec[2] = -1.f;
normalize_vector(vec); normalize_vector(vec);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment