[FFmpeg-cvslog] avcodec/cook: use av_malloc_array()
Michael Niedermayer
git at videolan.org
Tue Apr 22 20:10:02 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Apr 22 20:00:14 2014 +0200| [ea8e089ff7cd22003be4072ddba18834ec1cceaf] | committer: Michael Niedermayer
avcodec/cook: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ea8e089ff7cd22003be4072ddba18834ec1cceaf
---
libavcodec/cook.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/cook.c b/libavcodec/cook.c
index 402093c..d84d755 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. */
More information about the ffmpeg-cvslog
mailing list