ffmpeg | branch: master | Michael Niedermayer <michae...@gmx.at> | Mon Jul 21 03:19:12 2014 +0200| [71e515c180a5c3012e4717597be26618c38796a2] | committer: Michael Niedermayer
avformat/sapenc: Use av_mallocz_array() Signed-off-by: Michael Niedermayer <michae...@gmx.at> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=71e515c180a5c3012e4717597be26618c38796a2 --- libavformat/sapenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/sapenc.c b/libavformat/sapenc.c index 82a6ef6..c725ce3 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; _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog