From 683b6e3183ee48dcb25e86755c2125fd3bd8fdba Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 18 Apr 2014 18:56:39 +0200 Subject: avcodec/smacker: use av_mallocz_array() Signed-off-by: Michael Niedermayer --- libavcodec/smacker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/smacker.c') 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; -- cgit v1.2.1