diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2014-11-09 15:11:26 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-11-11 12:01:00 +0100 |
commit | c9c7d59b7d26f0328d612995dd9256337ae1cbfb (patch) | |
tree | d68450f91f13d1d1479b7de9a06172039c4acd69 /libavcodec | |
parent | c6074a30ba3b5fb4319ee6ee599656d58548cdc8 (diff) | |
download | ffmpeg-c9c7d59b7d26f0328d612995dd9256337ae1cbfb.tar.gz |
tiff: Use av_mallocz_array
CC: libav-stable@libav.org
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/tiffenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/tiffenc.c b/libavcodec/tiffenc.c index 93c151e167..b28f72b808 100644 --- a/libavcodec/tiffenc.c +++ b/libavcodec/tiffenc.c @@ -312,8 +312,8 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, offset = ptr; bytestream_put_le32(&ptr, 0); - strip_sizes = av_mallocz(sizeof(*strip_sizes) * strips); - strip_offsets = av_mallocz(sizeof(*strip_offsets) * strips); + strip_sizes = av_mallocz_array(strips, sizeof(*strip_sizes)); + strip_offsets = av_mallocz_array(strips, sizeof(*strip_offsets)); if (!strip_sizes || !strip_offsets) { ret = AVERROR(ENOMEM); goto fail; |