]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/smoothstreamingenc.c
Merge commit '9b60d9197970658e91daf4b586397f450de9af69'
[ffmpeg] / libavformat / smoothstreamingenc.c
index 6ce19372563d369206d927cdddfb0517b0c2a51f..d47e44fe6d768edf1b34c4137c2ad1e5de002ae0 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;