Skip to content
Snippets Groups Projects
Commit bcfd9f8d authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avcodec/proresdec_lgpl: Use av_malloc_array()

parent 4207c5a4
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment