summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-15 01:56:08 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-15 01:56:08 +0200
commitf6d17d2aa98efebd84e55c34a2a5c47fa4a71cd7 (patch)
treec602153451d16453c737b1b1ca7b1bdd1ff6185b
parent3af7e7b501d960d6dc07ebfebffc766ebd73fb1a (diff)
downloadffmpeg-streaming-f6d17d2aa98efebd84e55c34a2a5c47fa4a71cd7.zip
ffmpeg-streaming-f6d17d2aa98efebd84e55c34a2a5c47fa4a71cd7.tar.gz
avformat/matroskaenc: use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/matroskaenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 47d056c..8b19ae3 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -1127,7 +1127,7 @@ static int mkv_write_header(AVFormatContext *s)
version = 4;
}
- mkv->tracks = av_mallocz(s->nb_streams * sizeof(*mkv->tracks));
+ mkv->tracks = av_mallocz_array(s->nb_streams, sizeof(*mkv->tracks));
if (!mkv->tracks)
return AVERROR(ENOMEM);
OpenPOWER on IntegriCloud