Commit c1b15c16 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/smoothstreamingenc: Use av_mallocz_array()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b67bcd78
......@@ -303,7 +303,7 @@ static int ism_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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment