From 75d900d52edb281eb4ab4989800e75abe7555937 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 9 Jun 2012 02:41:33 +0200 Subject: swr: zero buffers on allocation Signed-off-by: Michael Niedermayer --- libswresample/swresample.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libswresample') diff --git a/libswresample/swresample.c b/libswresample/swresample.c index dc0b8eb4fc..3079fc44f4 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; ich_count; i++){ -- cgit v1.2.3