mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
avformat/hdsenc: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ca384d708b
commit
f054d1e7ae
@ -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…
Reference in New Issue
Block a user