[FFmpeg-cvslog] avfilter/af_surround: add forgotten null pointer check
Paul B Mahol
git at videolan.org
Tue Nov 15 11:39:20 EET 2022
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Nov 15 09:54:02 2022 +0100| [52f7adfbdeb6f92e393486fa2533575d33d1c88f] | committer: Paul B Mahol
avfilter/af_surround: add forgotten null pointer check
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=52f7adfbdeb6f92e393486fa2533575d33d1c88f
---
libavfilter/af_surround.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the ffmpeg-cvslog
mailing list