diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-07-21 03:19:12 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-07-21 03:19:12 +0200 |
commit | 71e515c180a5c3012e4717597be26618c38796a2 (patch) | |
tree | 3459d930ae5bf44ae98702cb92efdce3f42d3547 | |
parent | 437da3e349c2acbf1ce6f565ef71b51bcf66086e (diff) | |
download | ffmpeg-71e515c180a5c3012e4717597be26618c38796a2.tar.gz |
avformat/sapenc: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/sapenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |