Skip to content
Snippets Groups Projects
Commit f054d1e7 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avformat/hdsenc: Use av_mallocz_array()

parent ca384d70
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment