From 71e515c180a5c3012e4717597be26618c38796a2 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 21 Jul 2014 03:19:12 +0200 Subject: avformat/sapenc: Use av_mallocz_array() Signed-off-by: Michael Niedermayer --- libavformat/sapenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat') diff --git a/libavformat/sapenc.c b/libavformat/sapenc.c index 82a6ef67fd..c725ce3544 100644 --- a/libavformat/sapenc.c +++ b/libavformat/sapenc.c @@ -134,7 +134,7 @@ static int sap_write_header(AVFormatContext *s) freeaddrinfo(ai); } - contexts = av_mallocz(sizeof(AVFormatContext*) * s->nb_streams); + contexts = av_mallocz_array(s->nb_streams, sizeof(AVFormatContext*)); if (!contexts) { ret = AVERROR(ENOMEM); goto fail; -- cgit v1.2.3