From 09cd22860fefef50d9bcb32b1bd9806d860980e2 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 15 May 2014 01:56:52 +0200 Subject: [PATCH] avformat/libnut: use av_mallocz_array() Signed-off-by: Michael Niedermayer --- libavformat/libnut.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/libnut.c b/libavformat/libnut.c index be8f3cb283..4a9a21a766 100644 --- a/libavformat/libnut.c +++ b/libavformat/libnut.c @@ -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);