diff options
author | Paul B Mahol <onemda@gmail.com> | 2022-11-15 09:54:02 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2022-11-15 10:42:30 +0100 |
commit | 52f7adfbdeb6f92e393486fa2533575d33d1c88f (patch) | |
tree | 977207c20e8973a9c9dee38ee84ffc85015dee0d | |
parent | 11d744343f8fd4aa942d461ca7b45ab646ca69b7 (diff) | |
download | ffmpeg-52f7adfbdeb6f92e393486fa2533575d33d1c88f.tar.gz |
avfilter/af_surround: add forgotten null pointer check
-rw-r--r-- | libavfilter/af_surround.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_surround.c b/libavfilter/af_surround.c index 5484dccc36..357e3eb484 100644 --- a/libavfilter/af_surround.c +++ b/libavfilter/af_surround.c @@ -333,7 +333,7 @@ static int config_output(AVFilterLink *outlink) s->mag_total = av_calloc(s->rdft_size, sizeof(*s->mag_total)); s->lfe_mag = av_calloc(s->rdft_size, sizeof(*s->lfe_mag)); if (!s->x_pos || !s->y_pos || !s->l_phase || !s->r_phase || - !s->c_phase || !s->lfe_mag) + !s->c_phase || !s->mag_total || !s->lfe_mag) return AVERROR(ENOMEM); return 0; |