avformat/smoothstreamingenc: Use av_mallocz_array()
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 15 Jun 2014 21:20:56 +0000 (23:20 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 15 Jun 2014 21:21:46 +0000 (23:21 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/smoothstreamingenc.c

index 6ce1937..d47e44f 100644 (file)
@@ -303,7 +303,7 @@ static int ism_write_header(AVFormatContext *s)
         goto fail;
     }
 
-    c->streams = av_mallocz(sizeof(*c->streams) * s->nb_streams);
+    c->streams = av_mallocz_array(s->nb_streams, sizeof(*c->streams));
     if (!c->streams) {
         ret = AVERROR(ENOMEM);
         goto fail;