Browse Source

avfilter/vf_v360: remove pointless special case when allocating stuff

tags/n4.3
Paul B Mahol 5 years ago
parent
commit
efc73b13ac
1 changed files with 1 additions and 10 deletions
  1. +1
    -10
      libavfilter/vf_v360.c

+ 1
- 10
libavfilter/vf_v360.c View File

@@ -2348,22 +2348,13 @@ static int config_output(AVFilterLink *outlink)
s->nb_allocated = 1;
s->map[0] = s->map[1] = s->map[2] = s->map[3] = 0;
allocate_plane(s, sizeof_uv, sizeof_ker, 0);
} else if (desc->log2_chroma_h == desc->log2_chroma_w) {
} else {
s->nb_allocated = 2;
s->map[0] = 0;
s->map[1] = s->map[2] = 1;
s->map[3] = 0;
allocate_plane(s, sizeof_uv, sizeof_ker, 0);
allocate_plane(s, sizeof_uv, sizeof_ker, 1);
} else {
s->nb_allocated = 3;
s->map[0] = 0;
s->map[1] = 1;
s->map[2] = 2;
s->map[3] = 0;
allocate_plane(s, sizeof_uv, sizeof_ker, 0);
allocate_plane(s, sizeof_uv, sizeof_ker, 1);
allocate_plane(s, sizeof_uv, sizeof_ker, 2);
}

calculate_rotation_matrix(s->yaw, s->pitch, s->roll, rot_mat, s->rotation_order);


Loading…
Cancel
Save