summaryrefslogtreecommitdiff
path: root/libavformat/hdsenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-30 05:08:33 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-30 05:08:33 +0200
commitf054d1e7aedbcb5e70ffe92b08a5c5cef4c8a11e (patch)
treee54e621fb9723446f9ba7332b34fd94469f5950f /libavformat/hdsenc.c
parentca384d708b74b8b8105b7fe5707645f6824e3cea (diff)
downloadffmpeg-f054d1e7aedbcb5e70ffe92b08a5c5cef4c8a11e.tar.gz
avformat/hdsenc: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/hdsenc.c')
-rw-r--r--libavformat/hdsenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/hdsenc.c b/libavformat/hdsenc.c
index fb0a94892a..20b4b12139 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;