You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avfilter/af_surround: add forgotten null pointer check
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user