avformat/libnut: use av_mallocz_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-05-15 01:56:52 +02:00
parent f6d17d2aa9
commit 09cd22860f
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ static int nut_write_header(AVFormatContext * avf) {
nut_stream_header_tt * s;
int i;
priv->s = s = av_mallocz((avf->nb_streams + 1) * sizeof*s);
priv->s = s = av_mallocz_array(avf->nb_streams + 1, sizeof*s);
if(!s)
return AVERROR(ENOMEM);