aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-22 20:00:14 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-22 20:08:30 +0200
commitea8e089ff7cd22003be4072ddba18834ec1cceaf (patch)
treeec6fcb5b609f2bfd3e125ee216ae7cbc44b7c8a1 /libavcodec
parentb20d6cf60332850bc353ee1c06c2801dc9656bf3 (diff)
downloadffmpeg-ea8e089ff7cd22003be4072ddba18834ec1cceaf.tar.gz
avcodec/cook: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/cook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cook.c b/libavcodec/cook.c
index 402093c425..d84d755dea 100644
--- a/libavcodec/cook.c
+++ b/libavcodec/cook.c
@@ -219,7 +219,7 @@ static av_cold int init_cook_mlt(COOKContext *q)
int j, ret;
int mlt_size = q->samples_per_channel;
- if ((q->mlt_window = av_malloc(mlt_size * sizeof(*q->mlt_window))) == 0)
+ if ((q->mlt_window = av_malloc_array(mlt_size, sizeof(*q->mlt_window))) == 0)
return AVERROR(ENOMEM);
/* Initialize the MLT window: simple sine window. */