mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avfilter/af_surround: add forgotten null pointer check
This commit is contained in:
parent
11d744343f
commit
52f7adfbde
@ -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…
x
Reference in New Issue
Block a user