avformat/libnut: use av_mallocz_array()
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 14 May 2014 23:56:52 +0000 (01:56 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 14 May 2014 23:56:52 +0000 (01:56 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/libnut.c

index be8f3cb..4a9a21a 100644 (file)
@@ -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);