avcodec/smacker: use av_mallocz_array()
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 18 Apr 2014 16:56:39 +0000 (18:56 +0200)
committerMichael 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

index cd342b9..644beb3 100644 (file)
@@ -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;