swr: zero buffers on allocation
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 9 Jun 2012 00:41:33 +0000 (02:41 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 9 Jun 2012 00:42:46 +0000 (02:42 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswresample/swresample.c

index dc0b8eb..3079fc4 100644 (file)
@@ -358,7 +358,7 @@ static int realloc_audio(AudioData *a, int count){
     av_assert0(a->bps);
     av_assert0(a->ch_count);
 
-    a->data= av_malloc(countb*a->ch_count);
+    a->data= av_mallocz(countb*a->ch_count);
     if(!a->data)
         return AVERROR(ENOMEM);
     for(i=0; i<a->ch_count; i++){