diff options
author | Paul B Mahol <onemda@gmail.com> | 2020-06-23 21:53:39 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2020-06-23 21:55:40 +0200 |
commit | ce297b44d3b107150c07017993c267a4b9bb41b0 (patch) | |
tree | 48cd6548b54ca09050c009e2474934ea311f5b3c /libavfilter | |
parent | 001748b326f907f6bb0004378e72c64f7a7c4697 (diff) | |
download | ffmpeg-ce297b44d3b107150c07017993c267a4b9bb41b0.tar.gz |
avfilter/vf_v360: do not ignore return value of allocate_plane()
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_v360.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libavfilter/vf_v360.c b/libavfilter/vf_v360.c index a056b76cb6..c021724fa3 100644 --- a/libavfilter/vf_v360.c +++ b/libavfilter/vf_v360.c @@ -4493,8 +4493,11 @@ static int config_output(AVFilterLink *outlink) s->map[1] = s->map[2] = 1; } - for (int i = 0; i < s->nb_allocated; i++) - allocate_plane(s, sizeof_uv, sizeof_ker, sizeof_mask * have_alpha * s->alpha, i); + for (int i = 0; i < s->nb_allocated; i++) { + err = allocate_plane(s, sizeof_uv, sizeof_ker, sizeof_mask * have_alpha * s->alpha, i); + if (err < 0) + return err; + } calculate_rotation_matrix(s->yaw, s->pitch, s->roll, s->rot_mat, s->rotation_order); set_mirror_modifier(s->h_flip, s->v_flip, s->d_flip, s->output_mirror_modifier); |