diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-18 18:56:39 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-18 20:43:02 +0200 |
commit | 683b6e3183ee48dcb25e86755c2125fd3bd8fdba (patch) | |
tree | a1c2faeedc6590564d1202cb3262efab0dd22b99 /libavcodec | |
parent | 9b888fb159ebbeb4d10e618d765fd42b60a1cbc6 (diff) | |
download | ffmpeg-683b6e3183ee48dcb25e86755c2125fd3bd8fdba.tar.gz |
avcodec/smacker: use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/smacker.c | 2 |
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; |