[FFmpeg-cvslog] avcodec/smacker: use av_mallocz_array()

Michael Niedermayer git at videolan.org
Fri Apr 18 21:09:06 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Apr 18 18:56:39 2014 +0200| [683b6e3183ee48dcb25e86755c2125fd3bd8fdba] | committer: Michael Niedermayer

avcodec/smacker: use av_mallocz_array()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=683b6e3183ee48dcb25e86755c2125fd3bd8fdba
---

 libavcodec/smacker.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/smacker.c b/libavcodec/smacker.c
index cd342b9..644beb3 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;



More information about the ffmpeg-cvslog mailing list