OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f4ef3c
)
avcodec/mss12: Use av_malloc_array()
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 17 Jan 2015 12:01:26 +0000
(13:01 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 17 Jan 2015 12:01:26 +0000
(13:01 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mss12.c
patch
|
blob
|
history
diff --git
a/libavcodec/mss12.c
b/libavcodec/mss12.c
index
7d54d29
..
6b58aa2
100644
(file)
--- 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);