[FFmpeg-cvslog] avformat/sapenc: Use av_mallocz_array()
Michael Niedermayer
git at videolan.org
Mon Jul 21 03:25:05 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at 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 <michaelni at 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;
More information about the ffmpeg-cvslog
mailing list