[FFmpeg-cvslog] avformat/libnut: use av_mallocz_array()

Michael Niedermayer git at videolan.org
Thu May 15 02:51:44 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu May 15 01:56:52 2014 +0200| [09cd22860fefef50d9bcb32b1bd9806d860980e2] | committer: Michael Niedermayer

avformat/libnut: use av_mallocz_array()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=09cd22860fefef50d9bcb32b1bd9806d860980e2
---

 libavformat/libnut.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/libnut.c b/libavformat/libnut.c
index be8f3cb..4a9a21a 100644
--- a/libavformat/libnut.c
+++ b/libavformat/libnut.c
@@ -70,7 +70,7 @@ static int nut_write_header(AVFormatContext * avf) {
     nut_stream_header_tt * s;
     int i;
 
-    priv->s = s = av_mallocz((avf->nb_streams + 1) * sizeof*s);
+    priv->s = s = av_mallocz_array(avf->nb_streams + 1, sizeof*s);
     if(!s)
         return AVERROR(ENOMEM);
 



More information about the ffmpeg-cvslog mailing list