[FFmpeg-cvslog] avformat/hdsenc: Use av_mallocz_array()
Michael Niedermayer
git at videolan.org
Mon Jun 30 05:21:56 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Jun 30 05:08:33 2014 +0200| [f054d1e7aedbcb5e70ffe92b08a5c5cef4c8a11e] | committer: Michael Niedermayer
avformat/hdsenc: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f054d1e7aedbcb5e70ffe92b08a5c5cef4c8a11e
---
libavformat/hdsenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/hdsenc.c b/libavformat/hdsenc.c
index fb0a948..20b4b12 100644
--- a/libavformat/hdsenc.c
+++ b/libavformat/hdsenc.c
@@ -344,7 +344,7 @@ static int hds_write_header(AVFormatContext *s)
goto fail;
}
- c->streams = av_mallocz(sizeof(*c->streams) * s->nb_streams);
+ c->streams = av_mallocz_array(s->nb_streams, sizeof(*c->streams));
if (!c->streams) {
ret = AVERROR(ENOMEM);
goto fail;
More information about the ffmpeg-cvslog
mailing list