diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-20 17:35:19 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-20 17:35:19 +0200 |
commit | de9cd5884822375d492ff4dcc98e55317a66c196 (patch) | |
tree | 28517d625b67a16c0cfbed2bce75bc9503bac0a0 | |
parent | 8c88ea76df9b692cc40c4a4826534a02d38a088a (diff) | |
download | ffmpeg-de9cd5884822375d492ff4dcc98e55317a66c196.tar.gz |
avcdoec/webp: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/webp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/webp.c b/libavcodec/webp.c index 4dbdf786c8..19cb1fc223 100644 --- a/libavcodec/webp.c +++ b/libavcodec/webp.c @@ -309,7 +309,7 @@ static int huff_reader_build_canonical(HuffReader *r, int *code_lengths, if (max_code_length == 0 || max_code_length > MAX_HUFFMAN_CODE_LENGTH) return AVERROR(EINVAL); - codes = av_malloc(alphabet_size * sizeof(*codes)); + codes = av_malloc_array(alphabet_size, sizeof(*codes)); if (!codes) return AVERROR(ENOMEM); |