mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
avformat/ico: use avmalloc(z)_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
11b36b1ee0
commit
dd77f6469a
2 changed files with 2 additions and 2 deletions
|
|
@ -101,7 +101,7 @@ static int ico_write_header(AVFormatContext *s)
|
|||
avio_skip(pb, 16);
|
||||
}
|
||||
|
||||
ico->images = av_mallocz(ico->nb_images * sizeof(IcoMuxContext));
|
||||
ico->images = av_mallocz_array(ico->nb_images, sizeof(IcoMuxContext));
|
||||
if (!ico->images)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue