Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-17 15:01:26 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-01-17 15:01:26 +0300
commitf8ff76199c380146299b434fb56f51d49be90b1f (patch)
tree6490f66816b0f79195da933f9d7ab7fdb20a185d /libavcodec/mss12.c
parent1f4ef3ccaee64d38ccbcb040c024193d2b3bebf2 (diff)
avcodec/mss12: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mss12.c')
-rw-r--r--libavcodec/mss12.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mss12.c b/libavcodec/mss12.c
index 7d54d2917a..6b58aa2955 100644
--- a/libavcodec/mss12.c
+++ b/libavcodec/mss12.c
@@ -656,7 +656,7 @@ av_cold int ff_mss12_decode_init(MSS12Context *c, int version,
(version ? 8 : 0) + i * 3);
c->mask_stride = FFALIGN(avctx->width, 16);
- c->mask = av_malloc(c->mask_stride * avctx->height);
+ c->mask = av_malloc_array(c->mask_stride, avctx->height);
if (!c->mask) {
av_log(avctx, AV_LOG_ERROR, "Cannot allocate mask plane\n");
return AVERROR(ENOMEM);