From f054d1e7aedbcb5e70ffe92b08a5c5cef4c8a11e Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Mon, 30 Jun 2014 05:08:33 +0200
Subject: [PATCH] avformat/hdsenc: Use av_mallocz_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
---
 libavformat/hdsenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/hdsenc.c b/libavformat/hdsenc.c
index fb0a94892aa..20b4b121399 100644
--- a/libavformat/hdsenc.c
+++ b/libavformat/hdsenc.c
@@ -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;
-- 
GitLab