git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7999b41
)
avcodec/vble: use av_malloc_array()
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 16 Apr 2014 17:45:43 +0000
(19:45 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 16 Apr 2014 17:45:43 +0000
(19:45 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/vble.c
patch
|
blob
|
history
diff --git
a/libavcodec/vble.c
b/libavcodec/vble.c
index
a8c71ed
..
ed08b83
100644
(file)
--- a/
libavcodec/vble.c
+++ b/
libavcodec/vble.c
@@
-189,7
+189,7
@@
static av_cold int vble_decode_init(AVCodecContext *avctx)
ctx->size = avpicture_get_size(avctx->pix_fmt,
avctx->width, avctx->height);
- ctx->val = av_malloc
(ctx->size *
sizeof(*ctx->val));
+ ctx->val = av_malloc
_array(ctx->size,
sizeof(*ctx->val));
if (!ctx->val) {
av_log(avctx, AV_LOG_ERROR, "Could not allocate values buffer.\n");