avformat/matroskaenc: use av_mallocz_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/68/head
Michael Niedermayer 11 years ago
parent 3af7e7b501
commit f6d17d2aa9
  1. 2
      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);

Loading…
Cancel
Save