[FFmpeg-cvslog] avcodec/dsddec: use av_malloc_array()

Michael Niedermayer git at videolan.org
Tue Apr 22 20:10:02 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Apr 22 19:57:21 2014 +0200| [b20d6cf60332850bc353ee1c06c2801dc9656bf3] | committer: Michael Niedermayer

avcodec/dsddec: use av_malloc_array()

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

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

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

diff --git a/libavcodec/dsddec.c b/libavcodec/dsddec.c
index 1782d07..f1dfd4b 100644
--- a/libavcodec/dsddec.c
+++ b/libavcodec/dsddec.c
@@ -95,7 +95,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
 
     init_static_data();
 
-    s = av_malloc(sizeof(DSDContext) * avctx->channels);
+    s = av_malloc_array(sizeof(DSDContext), avctx->channels);
     if (!s)
         return AVERROR(ENOMEM);
 



More information about the ffmpeg-cvslog mailing list