Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-20 19:35:19 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-04-20 19:35:19 +0400
commitde9cd5884822375d492ff4dcc98e55317a66c196 (patch)
tree28517d625b67a16c0cfbed2bce75bc9503bac0a0 /libavcodec/webp.c
parent8c88ea76df9b692cc40c4a4826534a02d38a088a (diff)
avcdoec/webp: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/webp.c')
-rw-r--r--libavcodec/webp.c2
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);