Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2019-09-11 17:43:10 +0300
committerPaul B Mahol <onemda@gmail.com>2019-09-11 17:43:10 +0300
commitefc73b13ac397764d381fb8e7a07dd2cdf37ebd3 (patch)
tree2adfcf8af6581ef07bec5fe6d78f30a965e149d5 /libavfilter
parent7ce7002664fba80a0e36d221ceea1d3c6fd2ce08 (diff)
avfilter/vf_v360: remove pointless special case when allocating stuff
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_v360.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/libavfilter/vf_v360.c b/libavfilter/vf_v360.c
index ef4e303109..5b4d81458e 100644
--- a/libavfilter/vf_v360.c
+++ b/libavfilter/vf_v360.c
@@ -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);