Commit f6d17d2a authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/matroskaenc: use av_mallocz_array()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3af7e7b5
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment