[FFmpeg-cvslog] avfilter/af_amix: Use av_mallocz_array()
Michael Niedermayer
git at videolan.org
Mon Apr 6 15:14:29 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Apr 6 15:04:38 2015 +0200| [34bddf443c6fb1f02d73746cccf8e7b3f9f0dbb2] | committer: Michael Niedermayer
avfilter/af_amix: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=34bddf443c6fb1f02d73746cccf8e7b3f9f0dbb2
---
libavfilter/af_amix.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/af_amix.c b/libavfilter/af_amix.c
index fd9d135..ff9af3d 100644
--- a/libavfilter/af_amix.c
+++ b/libavfilter/af_amix.c
@@ -232,7 +232,7 @@ static int config_output(AVFilterLink *outlink)
if (!s->frame_list)
return AVERROR(ENOMEM);
- s->fifos = av_mallocz(s->nb_inputs * sizeof(*s->fifos));
+ s->fifos = av_mallocz_array(s->nb_inputs, sizeof(*s->fifos));
if (!s->fifos)
return AVERROR(ENOMEM);
More information about the ffmpeg-cvslog
mailing list