aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-18 18:56:39 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-18 20:43:02 +0200
commit683b6e3183ee48dcb25e86755c2125fd3bd8fdba (patch)
treea1c2faeedc6590564d1202cb3262efab0dd22b99
parent9b888fb159ebbeb4d10e618d765fd42b60a1cbc6 (diff)
downloadffmpeg-683b6e3183ee48dcb25e86755c2125fd3bd8fdba.tar.gz
avcodec/smacker: use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/smacker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/smacker.c b/libavcodec/smacker.c
index cd342b9d88..644beb34da 100644
--- 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;