avfilter/af_surround: add forgotten null pointer check

pull/388/head
Paul B Mahol 2 years ago
parent 11d744343f
commit 52f7adfbde
  1. 2
      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;

Loading…
Cancel
Save