aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-15 01:56:52 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-15 01:56:52 +0200
commit09cd22860fefef50d9bcb32b1bd9806d860980e2 (patch)
treee885ff1bb6ed94fb72d64a287102ebdc763386e7
parentf6d17d2aa98efebd84e55c34a2a5c47fa4a71cd7 (diff)
downloadffmpeg-09cd22860fefef50d9bcb32b1bd9806d860980e2.tar.gz
avformat/libnut: use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/libnut.c2
1 files changed, 1 insertions, 1 deletions
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);