diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-05-15 03:56:08 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-15 03:56:08 +0400 |
commit | f6d17d2aa98efebd84e55c34a2a5c47fa4a71cd7 (patch) | |
tree | c602153451d16453c737b1b1ca7b1bdd1ff6185b /libavformat/matroskaenc.c | |
parent | 3af7e7b501d960d6dc07ebfebffc766ebd73fb1a (diff) |
avformat/matroskaenc: use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/matroskaenc.c')
-rw-r--r-- | libavformat/matroskaenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 47d056c0cf..8b19ae3565 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); |