1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

avfilter/af_surround: add forgotten null pointer check

This commit is contained in:
Paul B Mahol
2022-11-15 09:54:02 +01:00
parent 11d744343f
commit 52f7adfbde

View File

@@ -333,7 +333,7 @@ static int config_output(AVFilterLink *outlink)
s->mag_total = av_calloc(s->rdft_size, sizeof(*s->mag_total)); s->mag_total = av_calloc(s->rdft_size, sizeof(*s->mag_total));
s->lfe_mag = av_calloc(s->rdft_size, sizeof(*s->lfe_mag)); 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 || 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 AVERROR(ENOMEM);
return 0; return 0;