[FFmpeg-cvslog] swresample/swresample: Use av_mallocz_array()

Michael Niedermayer git at videolan.org
Mon Mar 30 23:49:47 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Mar 30 22:59:09 2015 +0200| [1a10134e20efcda2666fb6f3488b2cda8c7756dc] | committer: Michael Niedermayer

swresample/swresample: Use av_mallocz_array()

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

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

 libswresample/swresample.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libswresample/swresample.c b/libswresample/swresample.c
index 9baccd2..c2be82c 100644
--- a/libswresample/swresample.c
+++ b/libswresample/swresample.c
@@ -352,7 +352,7 @@ int swri_realloc_audio(AudioData *a, int count){
     av_assert0(a->bps);
     av_assert0(a->ch_count);
 
-    a->data= av_mallocz(countb*a->ch_count);
+    a->data= av_mallocz_array(countb, a->ch_count);
     if(!a->data)
         return AVERROR(ENOMEM);
     for(i=0; i<a->ch_count; i++){



More information about the ffmpeg-cvslog mailing list