diff options
Diffstat (limited to 'libavformat/icoenc.c')
-rw-r--r-- | libavformat/icoenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/icoenc.c b/libavformat/icoenc.c index 561c6cadcc..dcf906513a 100644 --- a/libavformat/icoenc.c +++ b/libavformat/icoenc.c @@ -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); |