Commit c4f1abec authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/sunrast: Use av_malloc_array()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e6f1601d
......@@ -127,7 +127,7 @@ static int sunrast_decode_frame(AVCodecContext *avctx, void *data,
buf += maplength;
if (maplength && depth < 8) {
ptr = ptr2 = av_malloc((w + 15) * h);
ptr = ptr2 = av_malloc_array((w + 15), h);
if (!ptr)
return AVERROR(ENOMEM);
stride = (w + 15 >> 3) * depth;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment