1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

avformat/hdsenc: Use av_mallocz_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2014-06-30 05:08:33 +02:00
parent ca384d708b
commit f054d1e7ae

View File

@@ -344,7 +344,7 @@ static int hds_write_header(AVFormatContext *s)
goto fail; 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) { if (!c->streams) {
ret = AVERROR(ENOMEM); ret = AVERROR(ENOMEM);
goto fail; goto fail;