]> git.sesse.net Git - ffmpeg/commitdiff
avformat/hdsenc: Use av_mallocz_array()
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 30 Jun 2014 03:08:33 +0000 (05:08 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 30 Jun 2014 03:08:33 +0000 (05:08 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/hdsenc.c

index fb0a94892aaa7b6f42d779b5fd1a4112c760fa01..20b4b121399d13207843f44132e4866743b3611f 100644 (file)
@@ -344,7 +344,7 @@ static int hds_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;