[FFmpeg-cvslog] swr: zero buffers on allocation

Michael Niedermayer git at videolan.org
Sat Jun 9 02:46:22 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jun  9 02:41:33 2012 +0200| [75d900d52edb281eb4ab4989800e75abe7555937] | committer: Michael Niedermayer

swr: zero buffers on allocation

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

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

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

diff --git a/libswresample/swresample.c b/libswresample/swresample.c
index dc0b8eb..3079fc4 100644
--- a/libswresample/swresample.c
+++ b/libswresample/swresample.c
@@ -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++){



More information about the ffmpeg-cvslog mailing list