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:
9b888fb
)
avcodec/smacker: use av_mallocz_array()
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 18 Apr 2014 16:56:39 +0000
(18:56 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 18 Apr 2014 18:43:02 +0000
(20:43 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/smacker.c
patch
|
blob
|
history
diff --git
a/libavcodec/smacker.c
b/libavcodec/smacker.c
index
cd342b9
..
644beb3
100644
(file)
--- a/
libavcodec/smacker.c
+++ b/
libavcodec/smacker.c
@@
-271,7
+271,7
@@
static int smacker_decode_header_tree(SmackVContext *smk, GetBitContext *gb, int
huff.length = ((size + 3) >> 2) + 4;
huff.maxlength = 0;
huff.current = 0;
- huff.values = av_mallocz
(huff.length *
sizeof(int));
+ huff.values = av_mallocz
_array(huff.length,
sizeof(int));
if (!huff.values) {
err = AVERROR(ENOMEM);
goto error;