swresample/swresample: Use av_mallocz_array()
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 30 Mar 2015 20:59:09 +0000 (22:59 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 30 Mar 2015 21:24:33 +0000 (23:24 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswresample/swresample.c

index 9baccd2..c2be82c 100644 (file)
@@ -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++){