[FFmpeg-cvslog] avcodec/proresdec_lgpl: Use av_malloc_array()
Michael Niedermayer
git at videolan.org
Sun Jan 11 14:01:55 CET 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Jan 11 13:42:06 2015 +0100| [bcfd9f8d7fc16ae58ead975acfd2f0b748388111] | committer: Michael Niedermayer
avcodec/proresdec_lgpl: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bcfd9f8d7fc16ae58ead975acfd2f0b748388111
---
libavcodec/proresdec_lgpl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/proresdec_lgpl.c b/libavcodec/proresdec_lgpl.c
index f2e24ec..a2ee419 100644
--- a/libavcodec/proresdec_lgpl.c
+++ b/libavcodec/proresdec_lgpl.c
@@ -263,7 +263,7 @@ static int decode_picture_header(ProresContext *ctx, const uint8_t *buf,
if (ctx->total_slices != num_slices) {
av_freep(&ctx->slice_data);
- ctx->slice_data = av_malloc((num_slices + 1) * sizeof(ctx->slice_data[0]));
+ ctx->slice_data = av_malloc_array(num_slices + 1, sizeof(ctx->slice_data[0]));
if (!ctx->slice_data)
return AVERROR(ENOMEM);
ctx->total_slices = num_slices;
More information about the ffmpeg-cvslog
mailing list