Browse Source

avformat/hdsenc: Use av_mallocz_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Michael Niedermayer 11 years ago
parent
commit
f054d1e7ae
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/hdsenc.c

+ 1
- 1
libavformat/hdsenc.c View File

@@ -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;


Loading…
Cancel
Save