summaryrefslogtreecommitdiff
path: root/libavcodec/sunrast.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-14 13:35:11 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-14 13:35:11 +0100
commitc4f1abecb15e8d82ee1f6b776bc3bbfe94bb19d8 (patch)
tree0af9ce273664149a39f59a7d0c4de43748948242 /libavcodec/sunrast.c
parente6f1601d6d519eda1a1801fafc0fc806d9a3cd9d (diff)
downloadffmpeg-c4f1abecb15e8d82ee1f6b776bc3bbfe94bb19d8.tar.gz
avcodec/sunrast: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/sunrast.c')
-rw-r--r--libavcodec/sunrast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/sunrast.c b/libavcodec/sunrast.c
index d9918f48b9..3fbec1dfbf 100644
--- a/libavcodec/sunrast.c
+++ b/libavcodec/sunrast.c
@@ -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;